/**
 * gallery-styles.css
 * Specific styles for the unit image gallery
 */

/* Main gallery container */
.gallery-container {
    position: relative;
    width: 100%;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Main displayed image */
.unit-main-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease, transform 0.5s ease;
}

/* Gallery navigation controls */
.gallery-controls {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    z-index: 10;
}

/* Previous/Next buttons */
.gallery-prev, 
.gallery-next {
    background-color: rgba(1, 50, 32, 0.7);
    color: #FEFB3B;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.gallery-prev:hover, 
.gallery-next:hover {
    background-color: rgba(1, 50, 32, 0.9);
    transform: scale(1.1);
}

.gallery-prev:focus, 
.gallery-next:focus {
    outline: 2px solid #FEFB3B;
    outline-offset: 2px;
}

/* Image counter badge */
.gallery-counter {
    background-color: rgba(1, 50, 32, 0.7);
    color: #FEFB3B;
    padding: 5px 10px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Image thumbnails container (hidden but used by JS) */
.unit-images {
    display: none;
}

/* Hover state for image */
.gallery-container:hover .unit-main-image {
    transform: scale(1.03);
}

/* Hide gallery controls when there's only one image */
.gallery-container.single-image .gallery-controls {
    display: none;
}

/* Mobile responsive adjustments */
@media screen and (max-width: 768px) {
    .unit-main-image {
        height: 200px;
    }
    
    .gallery-prev, 
    .gallery-next {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
    
    .gallery-counter {
        font-size: 12px;
        padding: 4px 8px;
    }
    
    .gallery-controls {
        bottom: 10px;
        padding: 0 10px;
    }
}

/* Small mobile devices */
@media screen and (max-width: 480px) {
    .unit-main-image {
        height: 180px;
    }
    
    .gallery-prev, 
    .gallery-next {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .gallery-counter {
        font-size: 11px;
        padding: 3px 6px;
    }
}

/* Animation for image transitions */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.unit-main-image {
    animation: fadeIn 0.3s ease-in-out;
}