.main-content {
    margin-bottom: 50px;
}

.gall-bg-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/resources/gallery-hero.png') center center / cover no-repeat;
    z-index: 0;
    transition: background-image 0.8s ease-in-out;
}

.gall-section {
    display: flex;
    align-items: center;
    width: 100%;
    color: white;
    position: relative;
    min-height: 400px;
    padding: 60px 20px;
    flex-wrap: wrap;
}

.gall-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
}

.content-wrapper {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
}

.content-container {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 20px;
}

.content-column {
    flex: 0 0 58.33%;
}

.page-title {
    font-size: clamp(1.8rem, 2.5vw, 2.5rem);
    font-weight: bold;
    margin-bottom: 20px;
}

.page-desc {
    font-weight: 600;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 750px;
    text-align: justify;
}

.nav-buttons {
    display: flex;
    gap: 20px;
}

.nav-btn {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border: 2px solid white;
    background: transparent;
    color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.nav-btn.active,
.nav-btn:hover {
    background: white;
    color: #025836;
}

.gallery-section {
    padding: 60px 20px;
    max-width: 1300px;
    margin: auto;
}

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

.gallery-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #000;
}

.filter-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.filter-label {
    font-weight: 600;
    color: #000;
}

.filter-dropdown {
    padding: 10px 30px 10px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    min-width: 120px;
    background: white;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 8.5L2.5 5h7L6 8.5z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
}

.filter-dropdown:focus {
    outline: 2px solid #025836;
    border-color: #025836;
}

.filter-dropdown option {
    background: white;
    color: #000;
    padding: 8px;
}

.filter-dropdown option:hover,
.filter-dropdown option:checked,
.filter-dropdown option:focus {
    background-color: #025836 !important;
    color: white !important;
}

/* For webkit browsers (Chrome, Safari) */
.filter-dropdown option:checked {
    background: #025836 linear-gradient(0deg, #025836 0%, #025836 100%);
    color: white;
}

.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-bottom: 60px;
}

.photo-item {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    position: relative;
}

.photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    font-size: 1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.photo-item:hover .photo-overlay {
    opacity: 1;
}

.photo-item:hover {
    transform: translateY(-5px);
}

.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.photo-caption {
    padding: 20px;
    text-align: center;
}

.photo-caption h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    line-height: 1.4;
}

.video-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 12px;
}

.section {
    display: none;
}

.section.active {
    display: block;
}

/* Pagination Styles */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40px;
    gap: 10px;
}

.pagination-btn {
    padding: 10px 15px;
    border: 2px solid #025836;
    background: white;
    color: #025836;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    min-width: 45px;
    text-align: center;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: #025836;
    color: white;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-btn:disabled:hover {
    background: white;
    color: #025836;
}

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

.modal.active {
    display: flex;
}

.modal-content {
    position: relative;
    max-width: 800px;
    height: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.slideshow-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    margin: auto;
}

.slide {
    display: none;
    text-align: center;
    animation: fadeIn 0.5s ease-in-out;
}

.slide.active {
    display: block;
}

.slide img {
    width: 100%;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}

.slide video {
    width: 100%;
    max-height: 70vh;
    border-radius: 8px;
}

.slide iframe {
    width: 100%;
    height: 60vh;
    border-radius: 8px;
}


@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Navigation Arrows */
.prev,
.next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    color: white;
    border: 2px solid #025836;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 100px;
    right: 100px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
    transition: all 0.3s ease;
}

.close-modal:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Modal Info */
.modal-info {
    color: white;
    text-align: center;
    margin-top: 20px;
    padding: 0 20px;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.modal-counter {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 10px;
}

.modal-date {
    font-size: 0.9rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 768px) {
    .photo-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .nav-buttons {
        flex-direction: column;
        width: 100%;
    }

    .content-container {
        flex-direction: column;
        text-align: center;
    }

    .prev,
    .next {
        padding: 10px 15px;
        font-size: 20px;
    }

    .prev {
        left: 10px;
    }

    .next {
        right: 10px;
    }

    .thumbnail-container {
        bottom: 60px;
        max-width: 90%;
    }

    .thumbnail {
        width: 50px;
        height: 35px;
    }

    .modal-content {
        height: 300px;
    }

    .pagination-container {
        flex-wrap: wrap;
        gap: 5px;
    }

    .pagination-btn {
        min-width: 35px;
        padding: 8px 12px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .close-modal {
        position: absolute;
        top: 150px;
        right: 20px;
        width: 40px;
    }

    .modal-content {
        height: 300px;
    }

    .prev,
    .next {
        padding: 8px 15px;
        font-size: 15px;
}
}

@keyframes fadeInHero {
    0% {
        opacity: 0;
        transform: translateY(40px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-visible {
    animation: fadeInHero 1.2s ease-out forwards;
}

@keyframes slideInFromBottom {
    0% {
        transform: translateY(100%);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.page-slide-in {
    animation: slideInFromBottom 0.8s ease-out forwards;
}
