
/* ==============================
   Case Study Detail - Studio Graffiti
============================== */

.case-study-detail-area-sg {
    position: relative;
    padding-top: 120px;
    padding-bottom: 130px;
    background-color: #171717;
    overflow: hidden;
    z-index: 2;
}

.case-study-detail-area-sg::before {
    content: "";
    position: absolute;
    top: -180px;
    right: -180px;
    width: 430px;
    height: 430px;
    border-radius: 50%;
    background-color: rgba(220, 45, 23, 0.13);
    pointer-events: none;
}

.case-study-detail-area-sg::after {
    content: "";
    position: absolute;
    bottom: -220px;
    left: -220px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.04);
    pointer-events: none;
}

/* ==============================
   Hero
============================== */

.case-study-detail-hero-sg {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.42fr);
    gap: 70px;
    align-items: end;
    margin-bottom: 64px;
}

.case-study-detail-hero-content-sg {
    min-width: 0;
}

.case-study-detail-subtitle-sg {
    display: inline-flex;
    margin-bottom: 24px;
    color: #dc2d17;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-study-detail-title-sg {
    max-width: 980px;
    margin-bottom: 28px;
    color: #ffffff;
    font-size: clamp(46px, 6vw, 96px);
    line-height: 0.9;
    letter-spacing: -0.07em;
    font-weight: 800;
    overflow-wrap: break-word;
}

.case-study-detail-meta-sg {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.case-study-detail-meta-sg span {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 16px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1;
    font-weight: 700;
}

.case-study-detail-meta-sg strong {
    color: #ffffff;
    font-weight: 900;
}

/* ==============================
   Hero box
============================== */

.case-study-detail-hero-box-sg {
    padding: 34px 32px;
    border-radius: 30px;
    background-color: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.24);
}

.case-study-detail-hero-box-sg span {
    display: inline-flex;
    margin-bottom: 18px;
    color: #dc2d17;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-study-detail-hero-box-sg h2 {
    margin-bottom: 16px;
    color: #111111;
    font-size: 32px;
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.case-study-detail-hero-box-sg p {
    margin-bottom: 0;
    color: #555555;
    font-size: 16px;
    line-height: 1.6;
}

/* ==============================
   Main image
============================== */

.case-study-detail-main-image-sg {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    margin-bottom: 70px;
    border-radius: 34px;
    background-color: #000000;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-detail-main-image-sg img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ==============================
   Section heading
============================== */

.case-study-detail-section-heading-sg {
    margin-bottom: 30px;
}

.case-study-detail-section-heading-sg span {
    display: inline-flex;
    margin-bottom: 14px;
    color: #dc2d17;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-study-detail-section-heading-sg h2 {
    margin-bottom: 0;
    color: #ffffff;
    font-size: 46px;
    line-height: 0.95;
    letter-spacing: -0.06em;
    font-weight: 800;
}

.case-study-detail-content-card-sg .case-study-detail-section-heading-sg h2 {
    color: #111111;
}

/* ==============================
   Gallery
============================== */

.case-study-detail-gallery-sg {
    position: relative;
    z-index: 2;
    margin-bottom: 70px;
}

.case-study-gallery-slider-sg {
    position: relative;
    padding-inline: 64px;
}

.case-study-gallery-slider-sg .slider-container {
    gap: 24px;
}

.case-study-gallery-image-sg {
    width: 100%;
    height: 100%;
    border-radius: 28px;
    background-color: #000000;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-gallery-image-sg img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
}

/* ==============================
   Content layout
============================== */

.case-study-detail-content-layout-sg {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 34px;
    align-items: start;
}

.case-study-detail-content-card-sg {
    min-width: 0;
    padding: 56px 60px;
    border-radius: 34px;
    background-color: #ffffff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.22);
}

/* ==============================
   Editor content
============================== */

.case-study-detail-editor-sg {
    color: #444444;
    font-size: 18px;
    line-height: 1.75;
}

.case-study-detail-editor-sg p {
    margin-bottom: 24px;
    color: #444444;
    font-size: 18px;
    line-height: 1.75;
}

.case-study-detail-editor-sg p:last-child {
    margin-bottom: 0;
}

.case-study-detail-editor-sg h1,
.case-study-detail-editor-sg h2,
.case-study-detail-editor-sg h3,
.case-study-detail-editor-sg h4,
.case-study-detail-editor-sg h5,
.case-study-detail-editor-sg h6 {
    margin-top: 42px;
    margin-bottom: 18px;
    color: #111111;
    font-weight: 800;
    letter-spacing: -0.045em;
}

.case-study-detail-editor-sg h1 {
    font-size: 44px;
    line-height: 1;
}

.case-study-detail-editor-sg h2 {
    font-size: 38px;
    line-height: 1;
}

.case-study-detail-editor-sg h3 {
    font-size: 30px;
    line-height: 1.05;
}

.case-study-detail-editor-sg h4 {
    font-size: 24px;
    line-height: 1.1;
}

.case-study-detail-editor-sg h5 {
    font-size: 21px;
    line-height: 1.15;
}

.case-study-detail-editor-sg h6 {
    font-size: 18px;
    line-height: 1.2;
}

.case-study-detail-editor-sg ul,
.case-study-detail-editor-sg ol {
    margin: 26px 0;
    padding-left: 0;
    list-style: none;
}

.case-study-detail-editor-sg li {
    position: relative;
    margin-bottom: 14px;
    padding-left: 30px;
    color: #444444;
    font-size: 17px;
    line-height: 1.6;
}

.case-study-detail-editor-sg li::before {
    content: "";
    position: absolute;
    top: 11px;
    left: 0;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #dc2d17;
}

.case-study-detail-editor-sg a {
    color: #dc2d17;
    font-weight: 800;
    text-decoration: none;
    border-bottom: 1px solid rgba(220, 45, 23, 0.35);
    transition: all 0.3s ease;
}

.case-study-detail-editor-sg a:hover {
    color: #111111;
    border-color: #111111;
}

.case-study-detail-editor-sg strong,
.case-study-detail-editor-sg b {
    color: #111111;
    font-weight: 800;
}

.case-study-detail-editor-sg blockquote {
    margin: 36px 0;
    padding: 30px 34px;
    border-left: 5px solid #dc2d17;
    border-radius: 20px;
    background-color: rgba(220, 45, 23, 0.06);
    color: #111111;
    font-size: 22px;
    line-height: 1.45;
    font-weight: 700;
}

.case-study-detail-editor-sg img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 34px 0;
    border-radius: 24px;
}

.case-study-detail-editor-sg table {
    width: 100%;
    margin: 34px 0;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
}

.case-study-detail-editor-sg th,
.case-study-detail-editor-sg td {
    padding: 16px 18px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    color: #333333;
    font-size: 15px;
    line-height: 1.45;
}

.case-study-detail-editor-sg th {
    background-color: #171717;
    color: #ffffff;
    font-weight: 800;
}

/* ==============================
   Sidebar
============================== */

.case-study-detail-sidebar-sg {
    position: sticky;
    top: 110px;
    display: grid;
    gap: 18px;
    min-width: 0;
}

.case-study-detail-sidebar-card-sg {
    padding: 30px 28px;
    border-radius: 28px;
    background-color: #ffffff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.case-study-detail-sidebar-label-sg {
    display: inline-flex;
    margin-bottom: 16px;
    color: #dc2d17;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.case-study-detail-sidebar-card-sg h3 {
    margin-bottom: 14px;
    color: #111111;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.05em;
    font-weight: 800;
}

.case-study-detail-sidebar-card-sg p {
    margin-bottom: 22px;
    color: #555555;
    font-size: 15px;
    line-height: 1.55;
}

/* ==============================
   Buttons
============================== */

.case-study-detail-btn-sg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    padding: 15px 22px;
    border-radius: 999px;
    background-color: #dc2d17;
    color: #ffffff;
    font-size: 14px;
    line-height: 1;
    font-weight: 900;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-study-detail-btn-sg:hover {
    background-color: #171717;
    color: #ffffff;
    transform: translateY(-2px);
}

.case-study-detail-btn-outline-sg {
    background-color: #171717;
}

.case-study-detail-btn-outline-sg:hover {
    background-color: #dc2d17;
}

/* ==============================
   Share
============================== */

.case-study-detail-share-sg {
    display: flex;
    align-items: center;
    gap: 12px;
}

.case-study-detail-share-sg a,
.case-study-detail-share-mobile-sg {
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background-color: #171717;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.case-study-detail-share-sg a:hover,
.case-study-detail-share-mobile-sg:hover {
    background-color: #dc2d17;
    color: #ffffff;
    transform: translateY(-2px);
}

.case-study-detail-share-mobile-sg {
    display: none;
    width: auto;
    padding: 0 18px;
    gap: 8px;
    font-size: 13px;
    font-weight: 800;
}

/* ==============================
   Related cases
============================== */

.case-study-related-area-sg {
    position: relative;
    z-index: 2;
    margin-top: 90px;
}

.case-study-related-slider-sg {
    position: relative;
    padding-inline: 64px;
}

.case-study-related-slider-sg .slider-container {
    gap: 24px;
}

.case-study-related-card-sg {
    min-height: 100%;
    border-radius: 30px;
    background-color: #ffffff;
    overflow: hidden;
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.case-study-related-card-sg:hover {
    transform: translateY(-6px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.34);
}

.case-study-related-link-sg {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    color: inherit;
    text-decoration: none;
}

.case-study-related-image-sg {
    width: 100%;
    height: 230px;
    background-color: #000000;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;
}

.case-study-related-image-sg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.case-study-related-content-sg {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 28px 26px 26px;
}

.case-study-related-content-sg > span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    padding: 8px 13px;
    border-radius: 999px;
    background-color: rgba(220, 45, 23, 0.08);
    color: #dc2d17;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.case-study-related-content-sg h3 {
    margin-bottom: 24px;
    color: #111111;
    font-size: 28px;
    line-height: 1;
    letter-spacing: -0.055em;
    font-weight: 800;
    overflow-wrap: break-word;
}

.case-study-related-cta-sg {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: auto;
    padding-top: 22px;
    border-top: 1px solid rgba(17, 17, 17, 0.08);
    color: #111111;
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
}

.case-study-related-arrow-sg {
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #171717;
    color: #ffffff;
    transition: all 0.3s ease;
}

.case-study-related-arrow-sg svg {
    width: 15px;
    height: 16px;
}

.case-study-related-card-sg:hover .case-study-related-arrow-sg {
    background-color: #dc2d17;
    color: #ffffff;
    transform: rotate(45deg);
}

/* ==============================
   Gallery / Related slider arrows
============================== */

.case-study-gallery-slider-sg .slider-nav,
.case-study-related-slider-sg .slider-nav {
    position: absolute;
    top: 50%;
    z-index: 20;

    width: 54px;
    height: 54px;

    border: 1px solid rgba(17, 17, 17, 0.08) !important;
    border-radius: 50%;

    background-color: #ffffff !important;
    background-image: none !important;

    color: #111111 !important;
    opacity: 1 !important;

    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.28);

    display: inline-flex !important;
    align-items: center;
    justify-content: center;

    transform: translateY(-50%);
    transition: all 0.3s ease;
}

.case-study-gallery-slider-sg .slider-nav:not(.slider-nav-next),
.case-study-related-slider-sg .slider-nav:not(.slider-nav-next) {
    left: 0;
}

.case-study-gallery-slider-sg .slider-nav.slider-nav-next,
.case-study-related-slider-sg .slider-nav.slider-nav-next {
    right: 0;
}

.case-study-gallery-slider-sg .slider-nav::before,
.case-study-related-slider-sg .slider-nav::before {
    display: none !important;
}

.case-study-gallery-slider-sg .slider-nav::after,
.case-study-related-slider-sg .slider-nav::after {
    content: "" !important;

    width: 14px;
    height: 14px;

    border-top: 3px solid #111111 !important;
    border-right: 3px solid #111111 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;

    display: block;
    position: relative;

    background: transparent !important;
    opacity: 1 !important;
    filter: none !important;
}

.case-study-gallery-slider-sg .slider-nav:not(.slider-nav-next)::after,
.case-study-related-slider-sg .slider-nav:not(.slider-nav-next)::after {
    transform: rotate(-135deg);
    left: 2px;
}

.case-study-gallery-slider-sg .slider-nav.slider-nav-next::after,
.case-study-related-slider-sg .slider-nav.slider-nav-next::after {
    transform: rotate(45deg);
    right: 2px;
}

.case-study-gallery-slider-sg .slider-nav:hover,
.case-study-related-slider-sg .slider-nav:hover {
    background-color: #dc2d17 !important;
    color: #ffffff !important;
    border-color: #dc2d17 !important;
    transform: translateY(-50%) scale(1.06);
    box-shadow: 0 20px 50px rgba(220, 45, 23, 0.35);
}

.case-study-gallery-slider-sg .slider-nav:hover::after,
.case-study-related-slider-sg .slider-nav:hover::after {
    border-top-color: #ffffff !important;
    border-right-color: #ffffff !important;
}

.case-study-gallery-slider-sg .slider-nav:active,
.case-study-related-slider-sg .slider-nav:active {
    transform: translateY(-50%) scale(0.96);
}

.case-study-gallery-slider-sg .slider-nav:focus,
.case-study-related-slider-sg .slider-nav:focus {
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(220, 45, 23, 0.22), 0 18px 45px rgba(0, 0, 0, 0.28);
}

/* ==============================
   Responsive
============================== */

@media (max-width: 1199px) {
    .case-study-detail-hero-sg {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .case-study-detail-content-layout-sg {
        grid-template-columns: 1fr;
    }

    .case-study-detail-sidebar-sg {
        position: relative;
        top: auto;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 991px) {
    .case-study-detail-area-sg {
        padding-top: 90px;
        padding-bottom: 105px;
    }

    .case-study-detail-main-image-sg {
        height: 480px;
        margin-bottom: 58px;
    }

    .case-study-gallery-image-sg {
        height: 100%;
    }

    .case-study-detail-sidebar-sg {
        grid-template-columns: 1fr;
    }

    .case-study-detail-section-heading-sg h2 {
        font-size: 38px;
    }
}

@media (max-width: 767px) {
    .case-study-detail-area-sg {
        padding-top: 74px;
        padding-bottom: 88px;
    }

    .case-study-detail-hero-sg {
        margin-bottom: 42px;
    }

    .case-study-detail-title-sg {
        font-size: 42px;
        line-height: 0.95;
        margin-bottom: 24px;
    }

    .case-study-detail-meta-sg span {
        width: 100%;
        justify-content: space-between;
        font-size: 13px;
    }

    .case-study-detail-hero-box-sg {
        padding: 28px 24px;
        border-radius: 24px;
    }

    .case-study-detail-hero-box-sg h2 {
        font-size: 27px;
    }

    .case-study-detail-main-image-sg {
        height: 100%;
        border-radius: 24px;
        margin-bottom: 48px;
    }

    .case-study-detail-gallery-sg {
        margin-bottom: 54px;
    }

    .case-study-gallery-image-sg {
        height: 100%;
        border-radius: 22px;
    }

    .case-study-detail-content-card-sg {
        padding: 34px 24px;
        border-radius: 24px;
    }

    .case-study-detail-section-heading-sg {
        margin-bottom: 24px;
    }

    .case-study-detail-section-heading-sg h2 {
        font-size: 30px;
    }

    .case-study-detail-editor-sg,
    .case-study-detail-editor-sg p {
        font-size: 15px;
        line-height: 1.65;
    }

    .case-study-detail-editor-sg h1 {
        font-size: 32px;
    }

    .case-study-detail-editor-sg h2 {
        font-size: 28px;
    }

    .case-study-detail-editor-sg h3 {
        font-size: 24px;
    }

    .case-study-detail-editor-sg h4 {
        font-size: 21px;
    }

    .case-study-detail-editor-sg li {
        font-size: 15px;
        padding-left: 24px;
    }

    .case-study-detail-sidebar-card-sg {
        padding: 26px 22px;
        border-radius: 24px;
    }

    .case-study-detail-share-mobile-sg {
        display: inline-flex;
    }

    .case-study-related-area-sg {
        margin-top: 64px;
    }

    .case-study-related-card-sg:hover {
        transform: none;
    }

    .case-study-related-image-sg {
        height: 210px;
    }

    .case-study-related-content-sg {
        padding: 26px 22px 22px;
    }

    .case-study-related-content-sg h3 {
        font-size: 25px;
    }

    .case-study-gallery-slider-sg,
    .case-study-related-slider-sg {
        padding-inline: 0;
        padding-bottom: 74px;
    }

    .case-study-gallery-slider-sg .slider-nav,
    .case-study-related-slider-sg .slider-nav {
        top: auto;
        bottom: 0;

        width: 48px;
        height: 48px;

        transform: none;
    }

    .case-study-gallery-slider-sg .slider-nav:not(.slider-nav-next),
    .case-study-related-slider-sg .slider-nav:not(.slider-nav-next) {
        left: calc(50% - 58px);
    }

    .case-study-gallery-slider-sg .slider-nav.slider-nav-next,
    .case-study-related-slider-sg .slider-nav.slider-nav-next {
        right: calc(50% - 58px);
    }

    .case-study-gallery-slider-sg .slider-nav:hover,
    .case-study-related-slider-sg .slider-nav:hover {
        transform: none;
    }

    .case-study-gallery-slider-sg .slider-nav:active,
    .case-study-related-slider-sg .slider-nav:active {
        transform: scale(0.96);
    }
}

@media (max-width: 420px) {
    .case-study-detail-main-image-sg {
        height: 280px;
    }

    .case-study-gallery-image-sg {
        height: 230px;
    }

    .case-study-related-image-sg {
        height: 190px;
    }

    .case-study-detail-title-sg {
        font-size: 38px;
    }
}

.slider-nav::after {
    content: "";
    -webkit-mask: unset;
    -webkit-mask-size: unset;
    mask-size: cover;
    background-color: var(--swiffy-slider-nav-light);
    background-origin: content-box;
    width: 3rem;
    height: 3rem;
}