
/* =========================================
   GENERAL SETTINGS
========================================= */

.workshop-page {
    margin: 0;
    padding: 0;

    font-family: 'Poppins', sans-serif;

    background: #ffffff;
    color: #222222;

    overflow-x: hidden;
}

.workshop-page main,
.workshop-page main * {
    box-sizing: border-box;
}

.workshop-page main {
    margin: 0;
    padding: 0;
}


/* =========================================
   FIXED HEADER
========================================= */

.workshop-page #mainHeader {
    position: fixed !important;

    top: 12px;
    left: 50%;

    transform: translateX(-50%);

    width: calc(100% - 40px);
    max-width: 1600px;

    margin: 0;

    background: #ffffff;

    border-radius: 20px;

    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.12);

    z-index: 1050;

    transition: box-shadow 0.3s ease;
}

.workshop-page #mainHeader.scrolled {
    background: #ffffff;

    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}


/* =========================================
   WORKSHOP BANNER
========================================= */

.workshop-banner {
    position: relative;

    width: 100%;
    height: 400px;

    margin: 0;
    padding: 0;

    display: flex;
    align-items: center;

    overflow: hidden;

    background: #544333;
}


/* BANNER IMAGE */

.workshop-banner-image {
    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background-image: url('../images/card4.webp');

    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}


/* BANNER OVERLAY */

.workshop-banner-overlay {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, 0.18);

    z-index: 1;
}


/* BANNER CONTENT */

.workshop-banner-container {
    position: relative;

    width: 100%;

    padding: 80px 30px 0;

    display: flex;

    align-items: center;
    justify-content: space-between;

    gap: 25px;

    z-index: 2;
}


/* =========================================
   BREADCRUMB
========================================= */

.workshop-breadcrumb {
    display: flex;

    align-items: center;

    gap: 15px;

    font-size: 14px;
    font-weight: 500;

    color: #ffffff;

    animation: workshopFadeRight 1s ease;
}

.workshop-breadcrumb a {
    color: #ffffff;

    text-decoration: none;

    transition: color 0.3s ease;
}

.workshop-breadcrumb a:hover {
    color: #ffb000;
}

.workshop-breadcrumb i {
    font-size: 13px;
}

.workshop-breadcrumb span {
    color: #ffffff;
}


/* =========================================
   BANNER TITLE
========================================= */

.workshop-banner-title {
    margin: 0;

    font-size: 34px;
    font-weight: 600;
    line-height: 1.4;

    color: #ffffff;

    text-align: right;

    animation: workshopFadeLeft 1s ease;
}


/* =========================================
   WORKSHOP INTRODUCTION
========================================= */

.workshop-introduction {
    width: 100%;

    padding: 20px 35px 25px;

    background: #ffffff;
}

.workshop-intro-container {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;
}


/* MAIN TITLE */

.workshop-main-title {
    margin: 0 0 30px;

    font-size: 36px;
    font-weight: 600;
    line-height: 1.4;

    color: #222222;

    text-align: center;
}


/* DESCRIPTION */

.workshop-description {
    width: 100%;
}

.workshop-description p {
    margin: 0 0 17px;

    font-size: 16px;
    font-weight: 400;

    line-height: 1.85;

    color: #222222;

    text-align: justify;
}

.workshop-description p:last-child {
    margin-bottom: 0;
}

.workshop-description strong {
    font-weight: 600;
}


/* =========================================
   WORKSHOP GALLERY
========================================= */

.workshop-gallery-section {
    width: 100%;

    padding: 20px 12px 25px;

    background: #ffffff;
}

.workshop-gallery-grid {
    width: 100%;
    max-width: 1600px;

    margin: 0 auto;

    display: grid;

    grid-template-columns: repeat(3, minmax(0, 1fr));

    column-gap: 6px;
    row-gap: 24px;
}


/* =========================================
   GALLERY IMAGE ITEM
========================================= */

.workshop-gallery-item {
    position: relative;

    display: block;

    width: 100%;

    aspect-ratio: 3 / 2;

    margin: 0;
    padding: 0;

    border: none;
    border-radius: 0;

    background: #eeeeee;

    overflow: hidden;

    cursor: pointer;
}

.workshop-gallery-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center;

    transition: transform 0.6s ease;
}

.workshop-gallery-item:hover img {
    transform: scale(1.06);
}


/* =========================================
   IMAGE HOVER OVERLAY
========================================= */

.workshop-gallery-overlay {
    position: absolute;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, 0.30);

    opacity: 0;

    transition: opacity 0.3s ease;
}

.workshop-gallery-overlay i {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 50px;
    height: 50px;

    background: rgba(255, 255, 255, 0.18);

    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;

    color: #ffffff;

    font-size: 21px;

    transform: scale(0.7);

    transition: transform 0.3s ease;
}

.workshop-gallery-item:hover .workshop-gallery-overlay,
.workshop-gallery-item:focus-visible .workshop-gallery-overlay {
    opacity: 1;
}

.workshop-gallery-item:hover .workshop-gallery-overlay i,
.workshop-gallery-item:focus-visible .workshop-gallery-overlay i {
    transform: scale(1);
}


/* =========================================
   IMAGE LIGHTBOX
========================================= */

.workshop-lightbox {
    position: fixed;

    inset: 0;

    width: 100%;
    height: 100%;

    max-width: none;
    max-height: none;

    margin: 0;
    padding: 0;

    border: none;

    background: rgba(0, 0, 0, 0.82);

    color: #ffffff;

    overflow: hidden;

    z-index: 99999;
}

.workshop-lightbox:not([open]) {
    display: none;
}

.workshop-lightbox[open] {
    display: flex;

    align-items: center;
    justify-content: center;

    animation: workshopLightboxFade 0.3s ease;
}

.workshop-lightbox::backdrop {
    background: transparent;
}


/* =========================================
   LIGHTBOX TOOLBAR
========================================= */

.workshop-lightbox-toolbar {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    padding: 12px 20px;

    display: flex;

    align-items: center;
    justify-content: space-between;

    background: rgba(0, 0, 0, 0.25);

    z-index: 5;
}

.workshop-lightbox-counter {
    color: #ffffff;

    font-size: 15px;
    font-weight: 500;
}

.workshop-lightbox-actions {
    display: flex;

    align-items: center;

    gap: 10px;
}

.workshop-lightbox-actions button {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 38px;
    height: 38px;

    margin: 0;
    padding: 0;

    background: transparent;

    border: none;
    border-radius: 4px;

    color: #ffffff;

    font-size: 19px;

    cursor: pointer;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.workshop-lightbox-actions button:hover {
    background: rgba(255, 255, 255, 0.15);

    color: #ffb000;
}


/* =========================================
   LIGHTBOX IMAGE
========================================= */

.workshop-lightbox-image-area {
    position: absolute;

    top: 65px;
    bottom: 65px;
    left: 12%;
    right: 12%;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;
}

.workshop-lightbox-image-area img {
    display: block;

    width: auto;
    height: auto;

    max-width: 100%;
    max-height: 100%;

    object-fit: contain;

    cursor: zoom-in;

    animation: workshopImageFade 0.3s ease;
}


/* ZOOMED IMAGE */

.workshop-lightbox-image-area.zoomed {
    display: block;

    overflow: auto;
}

.workshop-lightbox-image-area.zoomed img {
    width: 180%;

    max-width: none;
    max-height: none;

    height: auto;

    cursor: zoom-out;
}


/* =========================================
   PREVIOUS AND NEXT BUTTONS
========================================= */

.workshop-lightbox-prev,
.workshop-lightbox-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    padding: 0;

    background: transparent;

    border: none;
    border-radius: 50%;

    color: #ffffff;

    font-size: 25px;

    cursor: pointer;

    z-index: 5;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}

.workshop-lightbox-prev {
    left: 5%;
}

.workshop-lightbox-next {
    right: 5%;
}

.workshop-lightbox-prev:hover,
.workshop-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.15);

    color: #ffb000;
}


/* =========================================
   LIGHTBOX CAPTION
========================================= */

.workshop-lightbox-caption {
    position: absolute;

    bottom: 15px;
    left: 0;

    width: 100%;

    padding: 8px 20px;

    color: #ffffff;

    font-size: 15px;
    font-weight: 500;

    text-align: center;

    pointer-events: none;
}

.workshop-share-status {
    position: absolute;

    bottom: 55px;
    left: 50%;

    transform: translateX(-50%);

    max-width: 90%;

    padding: 10px 18px;

    background: #222222;

    border-radius: 5px;

    color: #ffffff;

    font-size: 13px;

    text-align: center;

    z-index: 6;
}

.workshop-share-status:empty {
    display: none;
}


/* =========================================
   CONNECT WITH US
========================================= */

.workshop-connect {
    width: 100%;

    padding: 15px 10px;

    background: #f0f0f2;
}

.workshop-connect-container {
    width: 100%;

    display: grid;

    grid-template-columns: 2fr 1fr;

    align-items: center;

    gap: 15px;
}

.workshop-connect-container p {
    margin: 0;

    font-size: 15px;
    font-weight: 400;

    line-height: 1.6;

    color: #222222;
}

.workshop-connect-btn {
    justify-self: start;

    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 36px;

    padding: 10px 16px;

    background: #000000;

    color: #ffffff;

    border-radius: 4px;

    font-size: 13px;
    font-weight: 600;

    text-decoration: none;

    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.workshop-connect-btn:hover {
    background: #ffb000;

    color: #111111;

    transform: translateY(-2px);
}


/* =========================================
   ANIMATIONS
========================================= */

@keyframes workshopFadeRight {

    from {
        opacity: 0;

        transform: translateX(-40px);
    }

    to {
        opacity: 1;

        transform: translateX(0);
    }

}

@keyframes workshopFadeLeft {

    from {
        opacity: 0;

        transform: translateX(40px);
    }

    to {
        opacity: 1;

        transform: translateX(0);
    }

}

@keyframes workshopLightboxFade {

    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }

}

@keyframes workshopImageFade {

    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }

}


/* SCROLL REVEAL */

.workshop-reveal.animate-reveal {
    opacity: 0;

    transform: translateY(30px);

    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.workshop-reveal.animate-reveal.visible {
    opacity: 1;

    transform: translateY(0);
}


/* =========================================
   TABLET RESPONSIVE
========================================= */

@media (max-width: 1024px) {

    .workshop-page #mainHeader {
        top: 10px;

        width: calc(100% - 30px);

        border-radius: 18px;
    }

    .workshop-banner {
        height: 400px;
    }

    .workshop-banner-container {
        padding: 70px 25px 0;
    }

    .workshop-banner-title {
        font-size: 30px;
    }

    .workshop-introduction {
        padding: 25px 25px 20px;
    }

    .workshop-main-title {
        font-size: 32px;
    }

    .workshop-description p {
        font-size: 15px;
    }

    .workshop-gallery-grid {
        column-gap: 8px;
        row-gap: 15px;
    }

}


/* =========================================
   MOBILE RESPONSIVE
========================================= */

@media (max-width: 768px) {

    .workshop-page #mainHeader {
        top: 8px;

        width: calc(100% - 20px);

        border-radius: 15px;
    }

    .workshop-banner {
        height: 350px;
    }

    .workshop-banner-container {
        padding: 70px 20px 0;
    }

    .workshop-banner-title {
        font-size: 27px;
    }

    .workshop-breadcrumb {
        font-size: 12px;

        gap: 10px;
    }

    .workshop-introduction {
        padding: 25px 20px 15px;
    }

    .workshop-main-title {
        margin-bottom: 20px;

        font-size: 29px;
    }

    .workshop-description p {
        font-size: 14px;

        line-height: 1.85;

        text-align: left;
    }

    .workshop-gallery-section {
        padding: 15px 10px 25px;
    }

    .workshop-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 10px;
    }

    .workshop-lightbox-image-area {
        left: 10%;
        right: 10%;
    }

    .workshop-lightbox-prev {
        left: 0;
    }

    .workshop-lightbox-next {
        right: 0;
    }

    .workshop-lightbox-prev,
    .workshop-lightbox-next {
        width: 35px;
        height: 40px;

        font-size: 20px;
    }

    .workshop-connect {
        padding: 20px 15px;
    }

    .workshop-connect-container {
        grid-template-columns: 1fr;

        text-align: center;
    }

    .workshop-connect-container p {
        font-size: 14px;
    }

    .workshop-connect-btn {
        justify-self: center;
    }

}


/* =========================================
   SMALL MOBILE RESPONSIVE
========================================= */

@media (max-width: 480px) {

    .workshop-page #mainHeader {
        top: 5px;

        width: calc(100% - 16px);

        border-radius: 12px;
    }

    .workshop-banner {
        height: 300px;
    }

    .workshop-banner-container {
        flex-direction: column-reverse;

        justify-content: center;

        gap: 15px;
    }

    .workshop-banner-title {
        font-size: 25px;

        text-align: center;
    }

    .workshop-breadcrumb {
        font-size: 11px;
    }

    .workshop-introduction {
        padding: 20px 15px 15px;
    }

    .workshop-main-title {
        font-size: 26px;
    }

    .workshop-description p {
        font-size: 14px;

        line-height: 1.8;
    }

    .workshop-gallery-grid {
        grid-template-columns: 1fr;

        gap: 12px;
    }

    .workshop-gallery-item {
        aspect-ratio: 3 / 2;
    }

    .workshop-lightbox-toolbar {
        padding: 8px 10px;
    }

    .workshop-lightbox-actions {
        gap: 3px;
    }

    .workshop-lightbox-actions button {
        width: 32px;
        height: 35px;

        font-size: 16px;
    }

    .workshop-lightbox-counter {
        font-size: 13px;
    }

    .workshop-lightbox-image-area {
        left: 35px;
        right: 35px;
    }

    .workshop-lightbox-caption {
        font-size: 13px;
    }

    .workshop-connect-container p {
        font-size: 13px;
    }

    .workshop-connect-btn {
        font-size: 12px;
    }

}


/* =========================================
   ACCESSIBILITY
========================================= */

.workshop-page main a:focus-visible,
.workshop-gallery-item:focus-visible,
.workshop-lightbox button:focus-visible {
    outline: 2px solid #ffb000;

    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

    .workshop-breadcrumb,
    .workshop-banner-title,
    .workshop-lightbox[open],
    .workshop-lightbox-image-area img {
        animation: none;
    }

    .workshop-reveal.animate-reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

    .workshop-page #mainHeader,
    .workshop-gallery-item img,
    .workshop-gallery-overlay,
    .workshop-gallery-overlay i,
    .workshop-connect-btn,
    .workshop-lightbox button {
        transition: none;
    }

}
