/* Fish Gallery Page Styles */

.gallery-page {
    padding: 2rem 0;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.gallery-header h1 {
    margin: 0;
    font-size: 1.8rem;
    color: var(--primary-color);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    grid-gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    position: relative;
    overflow: hidden;
    padding-bottom: 75%; /* 4:3 aspect ratio */
    height: 0;
}

.gallery-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: var(--accent-color);
}

.modal-content {
    max-width: 90%;
    max-height: 90vh;
    animation: zoom 0.6s;
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border: 2px solid white;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

@keyframes zoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* Categorized Gallery */
.categorized-gallery {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.category-section {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 2rem;
    border-left: 4px solid var(--primary-color);
}

.category-title {
    margin: 0 0 1.5rem 0;
    font-size: 1.4rem;
    color: var(--primary-color);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Category-specific colors */
.category-section:has(.main-gallery) {
    border-left-color: #28a745;
    background: linear-gradient(135deg, #f0fff4 0%, #f8f9fa 100%);
}

.category-section:has(.main-gallery) .category-title {
    color: #28a745;
}

.category-section:nth-child(3) {
    border-left-color: #007bff;
    background: linear-gradient(135deg, #f0f8ff 0%, #f8f9fa 100%);
}

.category-section:nth-child(3) .category-title {
    color: #007bff;
}

.category-section:nth-child(4) {
    border-left-color: #6f42c1;
    background: linear-gradient(135deg, #f8f4ff 0%, #f8f9fa 100%);
}

.category-section:nth-child(4) .category-title {
    color: #6f42c1;
}

.category-section:nth-child(5) {
    border-left-color: #dc3545;
    background: linear-gradient(135deg, #fff5f5 0%, #f8f9fa 100%);
}

.category-section:nth-child(5) .category-title {
    color: #dc3545;
}

/* Main gallery special styling */
.main-gallery {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.main-gallery .gallery-item {
    border: 3px solid #28a745;
    position: relative;
}

.main-gallery .gallery-item::before {
    content: "MAIN";
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: bold;
    z-index: 10;
}

/* No Images Message */
.no-images {
    text-align: center;
    padding: 3rem 0;
    background-color: #f8f9fa;
    border-radius: 8px;
}

.no-images p {
    font-size: 1.2rem;
    color: #6c757d;
}

/* Gallery Image Container */
.gallery-image {
    position: relative;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        grid-gap: 1rem;
    }
    
    .modal-content img {
        max-width: 100%;
        max-height: 80vh;
    }
} 