﻿/* ================================
   WHIF 2025 Page Container
================================ */

.whif-2025-container {
    padding-top: 30px;
    padding-bottom: 70px;
}


/* ================================
   Hero Image
================================ */

.whif-2025-hero-image {
    position: relative;
    width: 100%;
    margin-bottom: 38px;
    overflow: hidden;
    border-radius: 12px;
    background-color: #000;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
}

.whif-2025-hero-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: cover;
    object-position: center;
}


/* ================================
   Page Heading
================================ */

.whif-2025-heading-section {
    max-width: 900px;
    margin: 0 auto 25px;
    text-align: center;
}

.whif-2025-title {
    margin: 0;
    color: #3b86c4;
    font-size: 30px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 1px;
}


/* ================================
   Description Section
================================ */

.whif-2025-description {
    max-width: 1050px;
    margin: 0 auto 55px;
    padding: 30px 35px;
    border-left: 5px solid #3b86c4;
    border-radius: 10px;
    background-color: #f8fbfe;
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.08);
}

.whif-2025-description p {
    margin-top: 0;
    margin-bottom: 16px;
    color: #333;
    font-size: 17px;
    line-height: 1.8;
    text-align: justify;
}

.whif-2025-description p:last-child {
    margin-bottom: 0;
}


/* ================================
   Gallery Heading
================================ */

.whif-2025-gallery-heading {
    margin-bottom: 28px;
    text-align: center;
}

.whif-2025-gallery-heading h2 {
    margin-bottom: 8px;
    color: #3b86c4;
    font-size: 26px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.whif-2025-gallery-heading p {
    margin: 0;
    color: #666;
    font-size: 16px;
    line-height: 1.6;
}


/* ================================
   Gallery
================================ */

.whif-2025-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Center the final image when only one item is visible. */
.whif-2025-gallery[data-visible-count="1"] {
    grid-template-columns: minmax(280px, 380px);
    justify-content: center;
}

/* Center two images when a page contains two items. */
.whif-2025-gallery[data-visible-count="2"] {
    grid-template-columns: repeat(2, minmax(280px, 380px));
    justify-content: center;
}

.whif-2025-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background-color: #eef3f7;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.11);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.whif-2025-gallery-item[hidden] {
    display: none !important;
}

.whif-2025-gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
}

.whif-2025-gallery-item img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: contain;
    object-position: center;
    transition: transform 0.4s ease;
}

.whif-2025-gallery-item:hover img {
    transform: scale(1.04);
}


/* ================================
   Pagination
================================ */

.whif-2025-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 34px;
}

.whif-2025-pagination:empty {
    display: none;
}

.whif-2025-page-button {
    display: inline-flex;
    min-width: 42px;
    height: 42px;
    padding: 0 13px;
    border: 1px solid #3b86c4;
    border-radius: 7px;
    justify-content: center;
    align-items: center;
    color: #3b86c4;
    font-size: 15px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    background-color: #fff;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease;
}

.whif-2025-page-button:hover:not(:disabled) {
    color: #fff;
    background-color: #3b86c4;
    transform: translateY(-2px);
}

.whif-2025-page-button.active {
    color: #fff;
    border-color: #3b86c4;
    background-color: #3b86c4;
}

.whif-2025-page-button:focus-visible {
    outline: 3px solid rgba(59, 134, 196, 0.3);
    outline-offset: 2px;
}

.whif-2025-page-button:disabled {
    color: #999;
    border-color: #d5d5d5;
    cursor: not-allowed;
    background-color: #f4f4f4;
    transform: none;
}

/* Left and right pagination arrow buttons. */
.whif-2025-page-button.pagination-navigation {
    width: 42px;
    min-width: 42px;
    padding: 0;
    font-size: 22px;
    font-weight: 700;
}


/* ================================
   Lightbox
================================ */

.whif-2025-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 30px;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.94);
    z-index: 9999;
    animation: whif2025FadeIn 0.25s ease-in-out;
}

.whif-2025-lightbox img {
    display: block;
    max-width: 90%;
    max-height: 86vh;
    border-radius: 10px;
    object-fit: contain;
    box-shadow: 0 8px 30px rgba(255, 255, 255, 0.15);
}


/* Close Button */

.whif-2025-lightbox .close {
    position: absolute;
    top: 20px;
    right: 28px;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 34px;
    line-height: 42px;
    text-align: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.16);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.whif-2025-lightbox .close:hover {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.28);
    transform: scale(1.08);
}


/* Previous and Next Lightbox Buttons */

.whif-2025-lightbox .prev,
.whif-2025-lightbox .next {
    position: absolute;
    top: 50%;
    width: 50px;
    height: 50px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #fff;
    font-size: 28px;
    line-height: 50px;
    text-align: center;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.18);
    transform: translateY(-50%);
    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.whif-2025-lightbox .prev {
    left: 24px;
}

.whif-2025-lightbox .next {
    right: 24px;
}

.whif-2025-lightbox .prev:hover,
.whif-2025-lightbox .next:hover {
    background-color: rgba(255, 255, 255, 0.34);
    transform: translateY(-50%) scale(1.08);
}


/* ================================
   Animation
================================ */

@keyframes whif2025FadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* ================================
   Tablet
================================ */

@media (max-width: 991px) {

    .whif-2025-gallery,
    .whif-2025-gallery[data-visible-count="2"],
    .whif-2025-gallery[data-visible-count="3"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .whif-2025-gallery[data-visible-count="1"] {
        grid-template-columns: minmax(280px, 420px);
    }

    .whif-2025-gallery-item img {
        height: 260px;
    }

    .whif-2025-description {
        padding: 26px 28px;
    }
}


/* ================================
   Mobile
================================ */

@media (max-width: 768px) {
    .whif-2025-container {
        padding: 15px 12px 50px;
    }

    .whif-2025-hero-image {
        margin-bottom: 28px;
        border-radius: 8px;
    }

    .whif-2025-hero-img {
        width: 100%;
        height: auto;
        max-height: none;
        object-fit: contain;
    }

    .whif-2025-title {
        font-size: 25px;
    }

    .whif-2025-description {
        margin-bottom: 40px;
        padding: 22px 20px;
        border-left-width: 4px;
    }

    .whif-2025-description p {
        font-size: 16px;
        line-height: 1.7;
        text-align: left;
    }

    .whif-2025-gallery-heading h2 {
        font-size: 23px;
    }

    .whif-2025-gallery,
    .whif-2025-gallery[data-visible-count="1"],
    .whif-2025-gallery[data-visible-count="2"],
    .whif-2025-gallery[data-visible-count="3"] {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .whif-2025-gallery-item img {
        height: auto;
        min-height: 0;
        object-fit: contain;
        background-color: #eef3f7;
    }

    .whif-2025-pagination {
        gap: 2px;
        margin-top: 20px;
    }

    .whif-2025-page-button {
        min-width: 38px;
        height: 38px;
        padding: 0 10px;
        font-size: 14px;
    }

    .whif-2025-page-button.pagination-navigation {
        width: 38px;
        min-width: 38px;
        padding: 0;
        font-size: 20px;
    }

    .whif-2025-lightbox {
        padding: 15px;
    }

    .whif-2025-lightbox img {
        max-width: 95%;
        max-height: 80vh;
    }

    .whif-2025-lightbox .close {
        top: 12px;
        right: 12px;
        width: 42px;
        height: 42px;
        font-size: 30px;
        line-height: 38px;
    }

    .whif-2025-lightbox .prev,
    .whif-2025-lightbox .next {
        width: 42px;
        height: 42px;
        font-size: 23px;
        line-height: 42px;
    }

    .whif-2025-lightbox .prev {
        left: 10px;
    }

    .whif-2025-lightbox .next {
        right: 10px;
    }
}


/* ================================
   Small Mobile
================================ */

@media (max-width: 480px) {
    .whif-2025-container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .whif-2025-hero-image {
        border-radius: 6px;
    }

    .whif-2025-title {
        font-size: 22px;
    }

    .whif-2025-description {
        padding: 18px 16px;
    }

    .whif-2025-description p {
        font-size: 15px;
    }

    .whif-2025-gallery-heading h2 {
        font-size: 21px;
    }

    .whif-2025-gallery-heading p {
        font-size: 15px;
    }
}
