main {
    margin-top: 95px;
    padding-top: 40px;
}

.breadcrumbs {
    margin-bottom: 40px;
}

.breadcrumbs__item .breadcrumbs__link {
    color: var(--color-primary);
}

.breadcrumbs__separator,
.breadcrumbs__current {
    color: var(--color-shades-tertiary);
}

/* --- Image + title box -------------------------------------------------- */
.image-title-box {
    height: 65vh;
    width: 100%;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

.image-title-box .news-main-img {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    object-fit: cover;
    object-position: top;
    display: block;
}

.image-title-box .title-box {
    z-index: 1;
    width: 80%;
    padding: 32px;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-direction: column;
    background-color: var(--color-surface);
    box-shadow: 0 10px 40px -10px #0000001a;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translate(-50%, 50%);
}

.image-title-box .title-box .title-and-date h2 {
    font-size: 24px;
    color: var(--color-shades-primary);
    font-family: var(--font-primary);
    font-weight: var(--weight-medium);
    margin-bottom: 16px;
}

.image-title-box .title-box .title-and-date span {
    font-size: 14px;
    color: var(--color-shades-secondary);
    font-family: var(--font-primary);
    font-weight: var(--weight-regular);
}

.image-title-box .title-box .share-btns {
    gap: 10px;
    margin-bottom: 16px;
}

.image-title-box .title-box .share-btns .share-btn {
    background-image: url('/images/assets/shear-stroke-btn-bg.svg');
    background-repeat: no-repeat;
    background-position: center;
    width: 150px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* make the div-turned-link behave like a button */
.image-title-box .title-box .share-btns .share-btn {
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease, filter 0.2s ease;
}

/* hover: lift slightly + subtle emphasis */
.image-title-box .title-box .share-btns .share-btn:hover {
    transform: translateY(-2px);
    opacity: 0.85;
}

/* active: press down */
.image-title-box .title-box .share-btns .share-btn:active {
    transform: translateY(0) scale(0.97);
    opacity: 1;
}

/* keyboard focus (accessibility) */
.image-title-box .title-box .share-btns .share-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: 4px;
}

.image-title-box .title-box .share-btns .share-btn span {
    font-size: 15px;
    color: var(--color-primary);
    font-weight: var(--weight-semibold);
}

.image-title-box .title-box .share-btns img {
    height: 15px;
}

.news-text {
    margin-bottom: 50px;
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-direction: column;
    margin-top: var(--title-overhang);
    gap: 15px;
}


.image-gallery {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 25px;
    width: 100%;
    margin-bottom: 50px;
}

.image-gallery .gallery-item {
    width: 300px;
}

.image-gallery .gallery-item img {
    width: 100%;
}



/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
    .image-title-box {
        height: 60vh;
    }

    .image-gallery {
        justify-content: flex-start;
    }

    .image-gallery .gallery-item {
        width: calc(31% - 5px);
    }
}

@media (max-width: 768px) {
    .breadcrumbs {
        margin-bottom: 32px;
    }

    .image-title-box {
        height: 50vh;
    }

    .image-title-box .title-box .share-btns .share-btn {
        background-image: url('/images/assets/shear-stroke-btn-bg-small.svg');
        width: 120px;
        height: 32px;
    }

    .image-title-box .title-box .share-btns .share-btn span {
        font-size: 12px;
    }

    .image-title-box .title-box .share-btns img {
        height: 12px;
    }

    .image-title-box .title-box {
        padding: 16px;
    }

    .image-title-box .title-box .title-and-date h2 {
        font-size: 20px;
        font-weight: var(--weight-semibold);
        margin-bottom: 12px;
    }

    .image-title-box .title-box .title-and-date span {
        font-size: 14px;
    }

    .image-gallery {
        gap: 10px;
    }

    .image-gallery .gallery-item {
        width: calc(33% - 5px);
    }
}

@media (max-width: 640px) {
    .image-title-box {
        height: 40vh;
    }

    .image-gallery .gallery-item {
        width: calc(50% - 5px);
        /* half the parent minus half the 10px gap */
    }
}

@media (max-width: 465px) {

    .image-title-box {
        height: 40vh;
    }

    .image-gallery {
        gap: 5px;
    }

    .image-gallery .gallery-item {
        width: calc(50% - 2.5px);
    }

    .image-title-box .title-box {
        width: 90%;
    }
}






/* ==========================================================================
   Lightbox
   ========================================================================== */
.light-box {
    display: none;
}


.light-box.open {
    display: flex;
    align-items: center;
    justify-content: center;
}

.light-box.open .overlay {
    width: 100%;
    height: 100vh;
    position: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    top: 0;
    right: 0;
    background-color: rgba(24, 24, 27, 0.98);
    z-index: 1000;
}

.light-box.open .overlay .lightbox-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 25px;
    padding-top: 100px;
    padding-bottom: 100px;
}

/* --- Main image area (fills space above the thumbnail strip) ------------- */
.light-box.open .overlay .lightbox-image-box {
    width: 90%;
    flex: 1;
    /* fill the vertical space → gives the box height */
    min-height: 0;
    /* allow it to shrink inside the flex column */
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* All main images stack in the same spot; only .active is visible */
.light-box.open .lightbox-image-box .lightbox-main-img {
    position: absolute;
    inset: 0;
    margin: auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease;
}

.light-box.open .lightbox-image-box .lightbox-main-img.active {
    opacity: 1;
    visibility: visible;
}

/* --- Close button (top corner) ------------------------------------------ */
.light-box.open .lightbox-image-box .lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 22px;
    background-color: rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.light-box.open .lightbox-image-box .lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: scale(1.05);
}

/* --- Side navigation buttons -------------------------------------------- */
.light-box.open .lightbox-image-box .lightbox-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    color: #fff;
    font-size: 22px;
    background-color: rgba(255, 255, 255, 0.12);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

/* RTL: "previous" on the right, "next" on the left */
.light-box.open .lightbox-image-box .lightbox-nav-btn--prev {
    right: 12px;
}

.light-box.open .lightbox-image-box .lightbox-nav-btn--next {
    left: 12px;
}

/* combined transform so hover scale keeps the vertical centering */
.light-box.open .lightbox-image-box .lightbox-nav-btn:hover {
    background-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-50%) scale(1.05);
}

/* --- Thumbnail strip ---------------------------------------------------- */
.light-box.open .overlay .lightbox-nav {
    width: 90%;
    flex-shrink: 0;
    gap: 10px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    max-height: 30vh;
    /* cap: strip can't exceed 30% of viewport */
    overflow-y: auto;
    /* scroll the overflow instead of pushing the image */
}

/* Each thumbnail is a wrapper so we can overlay it */
.light-box.open .overlay .lightbox-nav .lightbox-thumb {
    position: relative;
    width: 125px;
    cursor: pointer;
    border: 2px solid transparent;
    /* reserve space so layout doesn't shift */
    border-radius: 4px;
    overflow: hidden;
    flex-shrink: 0;
}

.light-box.open .overlay .lightbox-nav .lightbox-thumb img {
    width: 100%;
    display: block;
}

/* Dim overlay on INACTIVE thumbnails */
.light-box.open .overlay .lightbox-nav .lightbox-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.55);
    transition: background-color 0.2s ease;
    pointer-events: none;
}

/* Lighten dim on hover for feedback */
.light-box.open .overlay .lightbox-nav .lightbox-thumb:hover::after {
    background-color: rgba(0, 0, 0, 0.25);
}

/* ACTIVE thumbnail: white border, no dim overlay */
.light-box.open .overlay .lightbox-nav .lightbox-thumb.active {
    border-color: #fff;
}

.light-box.open .overlay .lightbox-nav .lightbox-thumb.active::after {
    background-color: transparent;
}


/* ==========================================================================
   Lightbox — responsive thumbnail strip
   ========================================================================== */

/* Tablet: slightly smaller fixed thumbnails */
@media (max-width: 1024px) {
    .light-box.open .overlay .lightbox-nav .lightbox-thumb {
        width: 110px;
    }
}

@media (max-width: 768px) {
    .light-box.open .overlay .lightbox-nav .lightbox-thumb {
        width: 100px;
    }

    .light-box.open .overlay .lightbox-nav {
        gap: 8px;
    }
}

@media (max-width: 640px) {
    .light-box.open .overlay .lightbox-nav {
        gap: 8px;
        justify-content: center;
        max-height: 28vh;
        /* a bit tighter on mobile */
    }

    .light-box.open .overlay .lightbox-nav .lightbox-thumb {
        width: calc(25% - 6px);
        /* 4 per row, wraps & scrolls within the cap */
    }
}

@media (max-width: 420px) {
    .light-box.open .overlay .lightbox-nav .lightbox-thumb {
        width: calc(33.333% - 6px);
    }
}