/* =========================================
   COOL BREEZE - TEAM GALLERY
========================================= */

.cbtg-page {
    --cbtg-navy: #0b2945;
    --cbtg-blue: #087db1;
    --cbtg-orange: #f36b21;
    --cbtg-muted: #64748b;

    font-family: inherit;
    color: var(--cbtg-navy);
    background: #ffffff;
    line-height: 1.6;
}

.cbtg-page * {
    box-sizing: border-box;
}

.cbtg-container {
    width: 92%;
    max-width: 1320px;
    margin: 0 auto;
}


/* =========================================
   PAGE BANNER
========================================= */

.cbtg-banner {
    position: relative;
    padding: 48px 0 55px;
    background: linear-gradient(
        115deg,
        #edf7fc 0%,
        #f8fbfd 60%,
        #ffffff 100%
    );
    border-bottom: 1px solid #dce8ef;
    overflow: hidden;
}

.cbtg-banner::before {
    content: "";
    position: absolute;
    top: -210px;
    right: -100px;
    width: 460px;
    height: 460px;
    border: 65px solid #d8edf7;
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
}

.cbtg-banner::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: 220px;
    bottom: -180px;
    border: 30px solid #dceef6;
    border-radius: 50%;
    pointer-events: none;
}

.cbtg-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 13px;
    position: relative;
    z-index: 1;
}

.cbtg-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
}

.cbtg-breadcrumb a:hover {
    color: var(--cbtg-blue);
}

.cbtg-breadcrumb span {
    color: var(--cbtg-navy);
    font-weight: 600;
}

.cbtg-banner-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.cbtg-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--cbtg-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.cbtg-kicker::before {
    content: "";
    width: 24px;
    height: 2px;
    background: var(--cbtg-orange);
}

.cbtg-banner h1 {
    font-size: clamp(36px, 4.5vw, 58px);
    font-weight: 750;
    color: var(--cbtg-navy);
    line-height: 1.15;
    margin: 0;
    letter-spacing: -1.5px;
}

.cbtg-banner h1 span {
    color: var(--cbtg-blue);
}

.cbtg-banner p {
    font-size: 16px;
    color: var(--cbtg-muted);
    max-width: 650px;
    margin: 13px 0 0;
}


/* =========================================
   PHOTO COUNT
========================================= */

.cbtg-banner-count {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 22px 30px;
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #d7e7f0;
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(11, 41, 69, 0.04);
    flex-shrink: 0;
}

.cbtg-count-icon {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eaf5fb;
    border-radius: 12px;
    color: var(--cbtg-blue);
}

.cbtg-count-text {
    display: flex;
    flex-direction: column;
}

.cbtg-count-text strong {
    font-size: 32px;
    color: var(--cbtg-navy);
    font-weight: 750;
    line-height: 1;
}

.cbtg-count-text span {
    font-size: 12px;
    color: var(--cbtg-muted);
    font-weight: 600;
    margin-top: 7px;
}


/* =========================================
   GALLERY MAIN SECTION
========================================= */

.cbtg-gallery-section {
    padding: 45px 0 75px;
}

.cbtg-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e5edf3;
    margin-bottom: 30px;
}


/* =========================================
   ALBUM NAVIGATION TABS
========================================= */

.cbtg-tabs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    background: #f1f6fa;
    border-radius: 10px;
    padding: 5px;
}

.cbtg-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 13px;
    font-weight: 700;
    color: #53677a;
    border-radius: 7px;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.cbtg-tab:hover {
    color: var(--cbtg-blue);
    background: #e1edf5;
}

.cbtg-tab.cbtg-active {
    background: var(--cbtg-navy);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(11, 41, 69, 0.15);
}

.cbtg-back {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    font-weight: 700;
    color: var(--cbtg-navy);
    text-decoration: none !important;
    transition: color 0.3s;
}

.cbtg-back:hover {
    color: var(--cbtg-orange);
}


/* =========================================
   GALLERY HEADING
========================================= */

.cbtg-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 25px;
}

.cbtg-section-heading h2 {
    margin: 0;
    color: var(--cbtg-navy);
    font-size: clamp(25px, 3vw, 32px);
    font-weight: 750;
    line-height: 1.3;
}

.cbtg-section-heading p {
    margin: 6px 0 0;
    font-size: 14px;
    color: var(--cbtg-muted);
}

.cbtg-view-hint {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--cbtg-muted);
    white-space: nowrap;
}


/* =========================================
   PHOTO GRID - FIVE IMAGES PER ROW
========================================= */

.cbtg-grid {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    width: 100%;
}

.cbtg-photo {
    position: relative;
    display: block;
    width: 100%;
    min-width: 0;
    aspect-ratio: 4 / 3;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid #e1e8ed;
    border-radius: 12px;
    background: #edf3f7;
    cursor: zoom-in;
    box-shadow: 0 4px 15px rgba(11, 41, 69, 0.06);
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.cbtg-photo img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100%;
    object-fit: cover;
    object-position: center;
    margin: 0;
    transition: transform 0.5s ease;
}

.cbtg-photo:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(11, 41, 69, 0.15);
}

.cbtg-photo:hover img {
    transform: scale(1.07);
}


/* =========================================
   IMAGE HOVER OVERLAY
========================================= */

.cbtg-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(5, 27, 45, 0.38);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.cbtg-photo:hover .cbtg-overlay,
.cbtg-photo:focus-visible .cbtg-overlay {
    opacity: 1;
}

.cbtg-zoom-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: #ffffff;
    border-radius: 50%;
    color: var(--cbtg-navy);
    transform: scale(0.8);
    transition: transform 0.3s ease;
}

.cbtg-photo:hover .cbtg-zoom-circle {
    transform: scale(1);
}

.cbtg-photo-number {
    position: absolute;
    left: 10px;
    bottom: 10px;
    padding: 4px 10px;
    background: rgba(11, 41, 69, 0.8);
    color: #ffffff;
    font-size: 10px;
    font-weight: 600;
    border-radius: 5px;
    pointer-events: none;
}


/* =========================================
   BOTTOM GALLERY NAVIGATION
========================================= */

.cbtg-next-album {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 45px;
    padding: 25px 30px;
    border: 1px solid #dce8f0;
    background: #f3f8fc;
    border-radius: 14px;
}

.cbtg-next-album small {
    display: block;
    color: var(--cbtg-blue);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: 1.5px;
    margin-bottom: 4px;
}

.cbtg-next-album h3 {
    margin: 0;
    color: var(--cbtg-navy);
    font-size: 24px;
    font-weight: 750;
}

.cbtg-next-album p {
    margin: 5px 0 0;
    font-size: 13px;
    color: var(--cbtg-muted);
}

.cbtg-next-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 13px 21px;
    border-radius: 7px;
    background: var(--cbtg-orange);
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    transition: background 0.3s;
}

.cbtg-next-button:hover {
    background: var(--cbtg-navy);
}


/* =========================================
   FULLSCREEN LIGHTBOX
========================================= */

.cbtg-lightbox {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important;
    display: none;
    flex-direction: column;
    width: 100%;
    height: 100%;
    height: 100dvh;
    padding: 0;
    margin: 0;
    background: rgba(5, 15, 26, 0.97);
    color: #ffffff;
    overflow: hidden;
}

.cbtg-lightbox.cbtg-open {
    display: flex !important;
    animation: cbtgFadeIn 0.25s ease;
}

@keyframes cbtgFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}


/* Lightbox Top Controls */

.cbtg-lightbox-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 24px;
    min-height: 68px;
    background: rgba(255, 255, 255, 0.04);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.cbtg-lightbox-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cbtg-lightbox-info strong {
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.cbtg-lightbox-info span {
    color: #b3c4d1;
    font-size: 12px;
}

.cbtg-lightbox-tools {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cbtg-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.07);
    color: #ffffff;
    cursor: pointer;
    transition: background 0.2s ease;
}

.cbtg-control:hover {
    background: rgba(255, 255, 255, 0.2);
}

.cbtg-control.cbtg-close-button {
    background: #f36b21;
    border-color: #f36b21;
}

.cbtg-control.cbtg-close-button:hover {
    background: #dc5610;
}


/* Lightbox Image Stage */

.cbtg-stage-wrapper {
    position: relative;
    flex: 1;
    min-height: 0;
    width: 100%;
    overflow: hidden;
}

.cbtg-stage {
    width: 100%;
    height: 100%;
    display: flex;
    padding: 25px 75px;
    overflow: auto;
    overscroll-behavior: contain;
}

.cbtg-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    margin: auto;
    object-fit: contain;
    user-select: none;
    -webkit-user-drag: none;
    cursor: zoom-in;
    border-radius: 4px;
    flex-shrink: 0;
}

.cbtg-stage.cbtg-zoomed {
    display: block;
    padding: 20px;
}

.cbtg-stage.cbtg-zoomed img {
    max-width: none;
    max-height: none;
    cursor: zoom-out;
}


/* Previous & Next Buttons */

.cbtg-prev,
.cbtg-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 55px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(20, 42, 61, 0.9);
    color: #ffffff;
    border-radius: 8px;
    padding: 0;
    cursor: pointer;
    transition: background 0.3s;
}

.cbtg-prev {
    left: 15px;
}

.cbtg-next {
    right: 15px;
}

.cbtg-prev:hover,
.cbtg-next:hover {
    background: #f36b21;
}


/* Lightbox Thumbnail Strip */

.cbtg-thumbnails {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 9px;
    padding: 15px 20px;
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.04);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.cbtg-thumb {
    flex: 0 0 78px;
    width: 78px;
    height: 58px;
    border-radius: 6px;
    border: 2px solid transparent;
    padding: 0;
    overflow: hidden;
    background: transparent;
    opacity: 0.5;
    cursor: pointer;
}

.cbtg-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cbtg-thumb:hover,
.cbtg-thumb.cbtg-thumb-active {
    opacity: 1;
}

.cbtg-thumb.cbtg-thumb-active {
    border-color: #f36b21;
}

.cbtg-page :focus-visible,
.cbtg-lightbox :focus-visible {
    outline: 3px solid #42b9ed;
    outline-offset: 3px;
}


/* =========================================
   LAPTOP RESPONSIVE - FOUR IMAGES
========================================= */

@media (max-width: 1200px) {

    .cbtg-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 16px;
    }

}


/* =========================================
   TABLET RESPONSIVE - THREE IMAGES
========================================= */

@media (max-width: 900px) {

    .cbtg-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .cbtg-banner-count {
        padding: 17px 20px;
    }

    .cbtg-banner-content {
        gap: 20px;
    }

    .cbtg-view-hint {
        display: none;
    }

}


/* =========================================
   MOBILE RESPONSIVE - TWO IMAGES
========================================= */

@media (max-width: 600px) {

    .cbtg-container {
        width: 92%;
    }

    .cbtg-banner {
        padding: 25px 0 32px;
    }

    .cbtg-breadcrumb {
        font-size: 11px;
        margin-bottom: 22px;
    }

    .cbtg-banner-content {
        flex-direction: column;
        align-items: flex-start;
        gap: 22px;
    }

    .cbtg-banner h1 {
        font-size: 36px;
    }

    .cbtg-banner p {
        font-size: 14px;
    }

    .cbtg-banner-count {
        padding: 12px 17px;
        gap: 12px;
    }

    .cbtg-count-icon {
        width: 40px;
        height: 40px;
    }

    .cbtg-count-text strong {
        font-size: 24px;
    }

    .cbtg-count-text span {
        font-size: 10px;
        margin-top: 4px;
    }

    .cbtg-gallery-section {
        padding: 25px 0 45px;
    }

    .cbtg-toolbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 22px;
        padding-bottom: 18px;
    }

    .cbtg-tabs {
        width: 100%;
    }

    .cbtg-tab {
        flex: 1;
        padding: 10px 12px;
        font-size: 12px;
    }

    .cbtg-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .cbtg-photo {
        border-radius: 8px;
        aspect-ratio: 4 / 3;
    }

    .cbtg-photo-number {
        left: 6px;
        bottom: 6px;
        font-size: 9px;
        padding: 3px 6px;
    }

    .cbtg-next-album {
        flex-direction: column;
        align-items: flex-start;
        gap: 18px;
        padding: 20px;
        margin-top: 30px;
    }

    .cbtg-lightbox-header {
        padding: 10px 12px;
        gap: 8px;
    }

    .cbtg-lightbox-info strong {
        font-size: 13px;
    }

    .cbtg-lightbox-info span {
        font-size: 11px;
    }

    .cbtg-control {
        width: 34px;
        height: 34px;
    }

    .cbtg-lightbox-tools {
        gap: 5px;
    }

    .cbtg-stage {
        padding: 12px 35px;
    }

    .cbtg-prev,
    .cbtg-next {
        width: 28px;
        height: 40px;
    }

    .cbtg-prev {
        left: 4px;
    }

    .cbtg-next {
        right: 4px;
    }

    .cbtg-thumbnails {
        gap: 6px;
        padding: 10px;
    }

    .cbtg-thumb {
        flex-basis: 60px;
        width: 60px;
        height: 45px;
    }

}

@media (prefers-reduced-motion: reduce) {

    .cbtg-page *,
    .cbtg-lightbox * {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }

}
