/* =========================================
   MAS MAIL DIGITAL
   PORTFOLIO DETAIL
   MODERN RESPONSIVE OVERLAY
========================================= */

/* =========================================
   OVERLAY
========================================= */

.portfolio-detail-overlay {
    position: fixed;
    inset: 0;
    z-index: 9990;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    visibility: hidden;
    pointer-events: none;

    opacity: 0;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

/* =========================================
   BACKDROP
========================================= */

.portfolio-detail-backdrop {
    position: absolute;
    inset: 0;

    background:
        rgba(7, 27, 58, .38);

    opacity: 0;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);

    transition:
        opacity .35s ease,
        backdrop-filter 0.45s ease,
        -webkit-backdrop-filter 0.45s ease;
}

.portfolio-detail-overlay.is-open {
    visibility: visible;
    pointer-events: auto;

    opacity: 1;
}

.portfolio-detail-overlay.is-open
.portfolio-detail-backdrop {
    opacity: 1;

    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

/* =========================================
   DETAIL SHEET
========================================= */

.portfolio-detail-sheet {
  position: absolute;
  top: 72px;
  right: 0;
  bottom: 0;
  left: 0;

  width: 100%;
  height: calc(100% - 72px);
  max-height: none;

  display: flex;
  flex-direction: column;

  background: #fff;
  border-radius: 28px 28px 0 0;
  overflow: hidden;

  box-shadow: 0 -10px 40px rgba(7, 27, 58, .14);

  transform: translateY(24px);
  opacity: 0;

  transition:
    transform .35s ease,
    opacity .35s ease;
}

.portfolio-detail-overlay.is-open
.portfolio-detail-sheet {
    transform:
        translateY(0);

    opacity: 1;
}
@media (max-width: 768px) {
  .portfolio-detail-sheet {
    top: 72px;
    height: calc(100% - 72px);
    border-radius: 28px 28px 0 0;
  }
}
/* =========================================
   SCROLLBAR
========================================= */

.portfolio-detail-sheet::-webkit-scrollbar {
    width: 6px;
}

.portfolio-detail-sheet::-webkit-scrollbar-track {
    background: transparent;
}

.portfolio-detail-sheet::-webkit-scrollbar-thumb {
    background:
        rgba(7, 27, 58, 0.18);

    border-radius:
        999px;
}

/* =========================================
   HANDLE
========================================= */

.portfolio-detail-handle {
    width: 48px;
    height: 5px;

    margin:
        12px auto 0;

    border-radius:
        999px;

    background:
        rgba(7, 27, 58, 0.15);
}

/* =========================================
   HEADER
========================================= */

.portfolio-detail-header {
    position: sticky;
    top: 0;
    z-index: 20;

    gap: 14px;
   grid-template-columns:
    1fr auto 1fr;
    padding:
        13px 24px;

    background:
        rgba(255, 255, 255, 0.94);

    border-bottom:
        1px solid
        var(--color-border);

    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  flex-shrink: 0;
}
/* =========================================
   HEADER BRAND
========================================= */

.portfolio-detail-brand {
    display: flex;

    align-items: center;

    min-width: 0;

    gap: 10px;
}

.portfolio-detail-brand img {
    display: block;

    width: 34px;
    height: 34px;

    flex-shrink: 0;

    object-fit: contain;
}

.portfolio-detail-brand-text {
    min-width: 0;
}

.portfolio-detail-brand-label {
    display: block;

    color:
        var(--color-text-soft);

    font-size:
        0.58rem;

    font-weight:
        700;

    letter-spacing:
        0.08em;

    text-transform:
        uppercase;
}

.portfolio-detail-brand-title {
    display: block;

    margin-top:
        2px;

    color:
        var(--color-navy);

    font-size:
        0.76rem;

    font-weight:
        800;
}

/* =========================================
   CONTENT
========================================= */

.portfolio-detail-content {
    display: grid;

    grid-template-columns:
        minmax(0, 1.08fr)
        minmax(0, 0.92fr);

    gap: 34px;

    padding:
        30px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;

  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
}
/* =========================================
   MEDIA GALLERY
========================================= */

.portfolio-detail-media {
    position: relative;

    min-width: 0;

    align-self: start;
}

/* =========================================
   MEDIA VIEWPORT
========================================= */

.portfolio-detail-media-viewport {
    position: relative;

    overflow: hidden;

    width: 100%;

    aspect-ratio:
        16 / 10;

    min-height:
        300px;

    border:
        1px solid
        var(--color-border);

    border-radius:
        22px;

    background:
        var(--color-background-soft);

    box-shadow:
        var(--shadow-small);

    touch-action:
        pan-y;
}

/* =========================================
   MEDIA SLIDER
========================================= */

.portfolio-detail-media-track {
    display: flex;

    width: 100%;
    height: 100%;

    transition:
        transform 0.45s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.portfolio-detail-media-slide {
    position: relative;

    flex:
        0 0 100%;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        var(--color-background-soft);
}

/* =========================================
   IMAGE MEDIA
========================================= */

.portfolio-detail-media-slide img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit:
        contain;

    user-select:
        none;

    -webkit-user-drag:
        none;
}

/* =========================================
   YOUTUBE MEDIA
========================================= */

.portfolio-detail-youtube {
    position: relative;

    width: 100%;
    height: 100%;

    display: flex;

    align-items: center;
    justify-content: center;

    overflow: hidden;

    background:
        #071b3a;

    cursor:
        pointer;
}

.portfolio-detail-youtube img {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    object-fit:
        cover;

    opacity:
        0.82;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.portfolio-detail-youtube:hover img {
    transform:
        scale(1.025);

    opacity:
        0.68;
}

/* =========================================
   YOUTUBE PLAY BUTTON
========================================= */

.portfolio-detail-youtube-play {
    position: relative;
    z-index: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 64px;
    height: 64px;

    border:
        0;

    border-radius:
        50%;

    background:
        rgba(255, 255, 255, 0.95);

    color:
        var(--color-navy);

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.25);

    transition:
        transform 0.25s ease,
        background 0.25s ease;
}

.portfolio-detail-youtube:hover
.portfolio-detail-youtube-play {
    transform:
        scale(1.08);
}

/* =========================================
   YOUTUBE IFRAME
========================================= */

.portfolio-detail-youtube iframe {
    display: block;

    width: 100%;
    height: 100%;

    border:
        0;
}
/* =========================================
   MEDIA NAVIGATION
   FINAL
========================================= */

.portfolio-detail-media-prev,
.portfolio-detail-media-next {
    position: absolute;

    top: 50%;
    z-index: 8;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 46px;
    height: 46px;

    margin: 0;
    padding: 0;

    box-sizing: border-box;

    border: 1px solid
        rgba(255, 255, 255, 0.45);

    border-radius: 50%;

    background:
        rgba(7, 27, 58, 0.78);

    color:
        #ffffff;

    font-family:
        inherit;

    font-size: 0;

    line-height: 1;

    cursor: pointer;

    transform:
        translateY(-50%);

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    box-shadow:
        0 8px 24px
        rgba(7, 27, 58, 0.25),

        inset 0 1px 0
        rgba(255, 255, 255, 0.16);

    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

/* posisi */

.portfolio-detail-media-prev {
    left: 14px;
}

.portfolio-detail-media-next {
    right: 14px;
}

/* =========================================
   ICON PANAH
========================================= */

.portfolio-detail-media-prev::before,
.portfolio-detail-media-next::before {
    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 9px;
    height: 9px;

    border-top:
        2px solid #ffffff;

    border-right:
        2px solid #ffffff;

    transform-origin:
        center;
}

.portfolio-detail-media-prev::before {
    transform:
        translate(
            -35%,
            -50%
        )
        rotate(-135deg);
}

.portfolio-detail-media-next::before {
    transform:
        translate(
            -65%,
            -50%
        )
        rotate(45deg);
}

/* =========================================
   HOVER
========================================= */

.portfolio-detail-media-prev:hover,
.portfolio-detail-media-next:hover {
    background:
        #d4af5f;

    color:
        #071b3a;

    box-shadow:
        0 12px 28px
        rgba(7, 27, 58, 0.28);

    transform:
        translateY(-50%)
        scale(1.06);
}

.portfolio-detail-media-prev:hover::before,
.portfolio-detail-media-next:hover::before {
    border-color:
        #071b3a;
}

/* =========================================
   ACTIVE
========================================= */

.portfolio-detail-media-prev:active,
.portfolio-detail-media-next:active {
    transform:
        translateY(-50%)
        scale(0.92);
}

/* =========================================
   MEDIA INDICATORS
   FINAL
========================================= */

.portfolio-detail-media-indicators {
    display: flex;

    align-items: center;
    justify-content: center;

    gap: 7px;

    min-height: 20px;

    margin-top: 12px;
}

.portfolio-detail-media-dot {
    width: 7px;
    height: 7px;

    flex: 0 0 7px;

    margin: 0;
    padding: 0;

    border: 0;

    border-radius: 999px;

    background:
        rgba(7, 27, 58, 0.18);

    cursor: pointer;

    transition:
        width 0.25s ease,
        background 0.25s ease,
        transform 0.25s ease;
}

.portfolio-detail-media-dot:hover {
    transform:
        scale(1.2);
}

.portfolio-detail-media-dot.is-active {
    width: 24px;

    flex-basis: 24px;

    background:
        var(--color-primary);

    transform:
        none;
}

/* =========================================
   MEDIA COUNTER
========================================= */

.portfolio-detail-media-counter {
    position: absolute;

    right: 12px;
    bottom: 12px;

    z-index: 9;

    display: flex;

    align-items: center;
    justify-content: center;

    min-width: 42px;
    min-height: 26px;

    padding:
        4px 9px;

    box-sizing:
        border-box;

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    border-radius:
        999px;

    background:
        rgba(7, 27, 58, 0.72);

    color:
        #ffffff;

    font-size:
        0.62rem;

    font-weight:
        800;

    line-height:
        1;

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);

    box-shadow:
        0 6px 18px
        rgba(7, 27, 58, 0.18);
}

/* =========================================
   INFO
========================================= */

.portfolio-detail-info {
    min-width: 0;

    padding:
        4px 0;
}
/* =========================================
   CATEGORY
========================================= */

.portfolio-detail-category {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    min-height: 28px;

    padding:
        6px 11px;

    box-sizing:
        border-box;

    border:
        1px solid
        rgba(212, 175, 95, 0.42);

    border-radius:
        999px;

    background:
        rgba(212, 175, 95, 0.10);

    color:
        var(--color-primary-dark);

    font-size:
        0.62rem;

    font-weight:
        800;

    line-height:
        1;

    letter-spacing:
        0.08em;
}

/* =========================================
   TITLE
========================================= */

.portfolio-detail-info h2 {
    margin:
        15px 0 0;

    color:
        var(--color-navy);

    font-size:
        clamp(
            1.55rem,
            3vw,
            2.25rem
        );

    line-height:
        1.16;

    letter-spacing:
        -0.035em;
}

/* =========================================
   DESCRIPTION
========================================= */

.portfolio-detail-description {
    margin:
        13px 0 0;

    color:
        var(--color-text-soft);

    font-size:
        0.88rem;

    line-height:
        1.72;
}

/* =========================================
   META
========================================= */

.portfolio-detail-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 8px;

    margin-top:
        18px;
}

.portfolio-detail-meta-item {
    padding:
        10px 12px;

    border:
        1px solid
        var(--color-border);

    border-radius:
        12px;

    background:
        var(--color-background-soft);
}

/* =========================================
   DETAIL SECTION
========================================= */

.portfolio-detail-section {
    margin-top:
        25px;

    padding-top:
        1px;
}

.portfolio-detail-section h3 {
    margin:
        0 0 9px;

    color:
        var(--color-navy);

    font-size:
        0.94rem;

    font-weight:
        800;

    line-height:
        1.3;
}

.portfolio-detail-section p {
    margin:
        0;

    color:
        var(--color-text-soft);

    font-size:
        0.81rem;

    line-height:
        1.75;
}

/* =========================================
   HIGHLIGHTS
========================================= */

.portfolio-detail-section ul {
    display:
        grid;

    gap:
        8px;

    margin:
        0;

    padding:
        0;

    list-style:
        none;
}

.portfolio-detail-section li {
    position:
        relative;

    padding-left:
        22px;

    color:
        var(--color-text-soft);

    font-size:
        0.81rem;

    line-height:
        1.55;
}

.portfolio-detail-section li::before {
    content:
        "✓";

    position:
        absolute;

    left:
        0;

    top:
        0;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    width:
        16px;

    height:
        16px;

    border-radius:
        50%;

    background:
        rgba(212, 175, 95, 0.14);

    color:
        var(--color-primary-dark);

    font-size:
        0.58rem;

    font-weight:
        900;
}

/* =========================================
   CTA WRAPPER
========================================= */

.portfolio-detail-cta {
    display:
        grid;

    grid-template-columns:
        repeat(2, minmax(0, 1fr));

    gap:
        10px;

    margin-top:
        27px;
}

/* =========================================
   CTA BUTTON
========================================= */

.portfolio-detail-action {
    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    min-width:
        0;

    min-height:
        50px;

    padding:
        12px 15px;

    box-sizing:
        border-box;

    border:
        1px solid
        var(--color-navy);

    border-radius:
        14px;

    background:
        var(--color-navy);

    color:
        #ffffff;

    font-family:
        inherit;

    font-size:
        0.76rem;

    font-weight:
        800;

    line-height:
        1.2;

    text-align:
        center;

    text-decoration:
        none;

    box-shadow:
        0 8px 22px
        rgba(7, 27, 58, 0.14);

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.portfolio-detail-action:hover {
    background:
        #0c2852;

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 26px
        rgba(7, 27, 58, 0.20);
}

.portfolio-detail-action:active {
    transform:
        translateY(0)
        scale(0.98);
}

/* =========================================
   SECONDARY CTA
========================================= */

.portfolio-detail-action.secondary {
    background:
        transparent;

    color:
        var(--color-navy);

    border-color:
        rgba(7, 27, 58, 0.18);

    box-shadow:
        none;
}

.portfolio-detail-action.secondary:hover {
    background:
        var(--color-background-soft);

    border-color:
        var(--color-navy);

    box-shadow:
        none;
   }

/* =========================================
   CTA HIDDEN STATE
========================================= */

.portfolio-detail-action.is-hidden {
    display:
        none;
}

/* =========================================
   BODY LOCK
========================================= */

body.portfolio-detail-open {
    overflow:
        hidden;
}

/* =========================================
   TABLET
========================================= */

@media (max-width: 800px) {

    .portfolio-detail-content {
        grid-template-columns:
            1fr;

        gap:
            24px;

        padding:
            24px;
    }

    .portfolio-detail-media-viewport {
        aspect-ratio:
            16 / 9;

        min-height:
            260px;
    }

    .portfolio-detail-info h2 {
        font-size:
            1.7rem;
    }

}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {

    .portfolio-detail-sheet {
        width:
            100%;

        max-height:
            95vh;

        border-radius:
            24px 24px 0 0;
    }

    .portfolio-detail-header {
        padding:
            11px 14px;
    }

    .portfolio-detail-brand img {
        width:
            30px;

        height:
            30px;
    }

    .portfolio-detail-brand-label {
        font-size:
            0.52rem;
    }

    .portfolio-detail-brand-title {
        font-size:
            0.7rem;
    }

    .portfolio-detail-back,
    .portfolio-detail-close {
        width:
            36px;

        height:
            36px;
    }

    .portfolio-detail-content {
        gap:
            20px;

        padding:
            20px 16px 30px;
    }

    .portfolio-detail-media-viewport {
        aspect-ratio:
            4 / 3;

        min-height:
            0;

        border-radius:
            17px;
    }

.portfolio-detail-media-prev,
.portfolio-detail-media-next {
    width:
        38px;

    height:
        38px;
}

    .portfolio-detail-media-prev {
        left:
            9px;
    }

    .portfolio-detail-media-next {
        right:
            9px;
    }

    .portfolio-detail-youtube-play {
        width:
            56px;

        height:
            56px;
    }

    .portfolio-detail-media-counter {
        right:
            9px;

        bottom:
            9px;

        font-size:
            0.56rem;
    }

    .portfolio-detail-info h2 {
        margin-top:
            13px;

        font-size:
            1.45rem;
    }

    .portfolio-detail-description {
        margin-top:
            12px;

        font-size:
            0.8rem;

        line-height:
            1.7;
    }

    .portfolio-detail-meta {
        gap:
            8px;

        margin-top:
            18px;
    }

    .portfolio-detail-meta-item {
        padding:
            11px;

        border-radius:
            12px;
    }

    .portfolio-detail-meta-label {
        font-size:
            0.58rem;
    }

    .portfolio-detail-meta-value {
        font-size:
            0.7rem;
    }

    .portfolio-detail-section {
        margin-top:
            23px;
    }

    .portfolio-detail-section h3 {
        font-size:
            0.9rem;
    }

    .portfolio-detail-section p,
    .portfolio-detail-section li {
        font-size:
            0.76rem;
    }

    .portfolio-detail-cta {
        grid-template-columns:
            1fr;

        gap:
            8px;

        margin-top:
            24px;
    }

    .portfolio-detail-action {
        min-height:
            48px;

        border-radius:
            13px;

        font-size:
            0.76rem;
    }

}

/* =========================================
   VERY SMALL PHONE
========================================= */

@media (max-width: 380px) {

    .portfolio-detail-sheet {
        max-height:
            96vh;
    }

    .portfolio-detail-content {
        padding:
            18px 13px 25px;
    }

    .portfolio-detail-brand-title {
        font-size:
            0.66rem;
    }

    .portfolio-detail-back,
    .portfolio-detail-close {
        width:
            34px;

        height:
            34px;
    }

    .portfolio-detail-info h2 {
        font-size:
            1.3rem;
    }

    .portfolio-detail-meta {
        grid-template-columns:
            1fr;
    }

    .portfolio-detail-media-prev,
    .portfolio-detail-media-next {
        width:
            32px;

        height:
            32px;
    }

}

/* =========================================
   REDUCED MOTION
========================================= */

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

    .portfolio-detail-overlay,
    .portfolio-detail-backdrop,
    .portfolio-detail-sheet,
    .portfolio-detail-media-track,
    .portfolio-detail-action,
    .portfolio-detail-close,
    .portfolio-detail-back {
        transition:
            none;
    }

    .portfolio-detail-youtube img {
        transition:
            none;
    }

}
/* =========================================================
   PORTFOLIO DETAIL - SCROLL LOCK FIX
========================================================= */

/* Saat detail tertutup, overlay benar-benar tidak boleh
   menangkap klik maupun scroll halaman utama */
.portfolio-detail-overlay {
    pointer-events: none;
}

/* Saat detail terbuka, overlay kembali aktif */
.portfolio-detail-overlay.is-open {
    pointer-events: auto;
}

/* Kunci halaman utama hanya ketika detail benar-benar terbuka */
body.portfolio-detail-open {
    overflow: hidden !important;
}

/* =========================================================
   CAROUSEL ARROWS
========================================================= */

.portfolio-detail-media-prev,
.portfolio-detail-media-next {
    position: absolute;

    top: 50%;

    width: 58px;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid rgba(255, 255, 255, 0.45);

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            rgba(7, 27, 58, 0.82),
            rgba(17, 43, 76, 0.72)
        );

    color: #ffffff;

    box-shadow:
        0 10px 28px rgba(7, 27, 58, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);

    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);

    font-size: 24px;
    font-weight: 400;

    cursor: pointer;

    z-index: 5;

    transition:
        transform 0.25s ease,
        background 0.25s ease,
        box-shadow 0.25s ease;
}

.portfolio-detail-media-prev {
    left: 18px;

    transform:
        translateY(-50%);
}

.portfolio-detail-media-next {
    right: 18px;

    transform:
        translateY(-50%);
}

.portfolio-detail-media-prev:hover,
.portfolio-detail-media-next:hover {
    background:
        linear-gradient(
            145deg,
            #d4af5f,
            #b99543
        );

    color: #071b3a;

    box-shadow:
        0 14px 32px rgba(7, 27, 58, 0.25);
}

.portfolio-detail-media-prev:active,
.portfolio-detail-media-next:active {
    transform:
        translateY(-50%)
        scale(0.92);
}

/* =========================================================
   HEADER FINAL - PORTFOLIO DETAIL
========================================================= */

.portfolio-detail-header {
    position: sticky;
    top: 0;
    z-index: 20;

    display: grid;

    grid-template-columns:
        1fr auto 1fr;

    align-items: center;

    min-height: 76px;

    padding:
        10px 18px;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid
        rgba(7, 27, 58, 0.08);

    backdrop-filter:
        blur(16px);

    -webkit-backdrop-filter:
        blur(16px);

    box-sizing:
        border-box;
}

/* =========================================================
   BRAND - BENAR-BENAR DI TENGAH
========================================================= */

.portfolio-detail-brand {
    grid-column: 2;

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 10px;

    min-width: 0;

    max-width: min(
        260px,
        calc(100vw - 150px)
    );

    margin: 0;

    justify-self: center;
}

.portfolio-detail-brand img {
    display: block;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    object-fit: contain;

    margin: 0;

    border-radius: 50%;
}

.portfolio-detail-brand-text {
    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;

    margin: 0;

    text-align: left;
}

.portfolio-detail-brand-label {
    display: block;

    margin: 0;

    color:
        var(--color-text-soft);

    font-size:
        0.58rem;

    font-weight:
        800;

    line-height:
        1.15;

    letter-spacing:
        0.12em;

    text-transform:
        uppercase;
}

.portfolio-detail-brand-title {
    display: block;

    margin: 3px 0 0;

    color:
        var(--color-navy);

    font-size:
        0.82rem;

    font-weight:
        800;

    line-height:
        1.15;

    white-space:
        nowrap;
}

/* =========================================================
   BACK & CLOSE - POSISI
========================================================= */

.portfolio-detail-back,
.portfolio-detail-close {

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    margin: 0;

    padding: 0;

    box-sizing: border-box;

    border:
        1px solid
        rgba(7, 27, 58, 0.09);

    border-radius:
        50%;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f3f6f9
        );

    color:
        var(--color-navy);

    box-shadow:
        0 6px 18px
        rgba(7, 27, 58, 0.08),

        inset 0 1px 0
        rgba(255, 255, 255, 0.95);

    cursor:
        pointer;

    transition:
        transform 0.22s ease,
        background 0.22s ease,
        color 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;

    -webkit-tap-highlight-color:
        transparent;
}

/* =========================================================
   LETAK TOMBOL
========================================================= */

.portfolio-detail-back {
    grid-column: 1;

    justify-self: start;
}

.portfolio-detail-close {
    grid-column: 3;

    justify-self: end;
}

/* =========================================================
   MATIKAN ICON TEKS LAMA
========================================================= */

.portfolio-detail-back span,
.portfolio-detail-close span {

    display: block;

    width: 0;
    height: 0;

    overflow: hidden;

    font-size: 0;

    line-height: 0;
}

/* =========================================================
   ICON BACK
========================================================= */

.portfolio-detail-back::before {

    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 9px;
    height: 9px;

    border-left:
        2px solid
        currentColor;

    border-bottom:
        2px solid
        currentColor;

    transform:
        translate(
            -35%,
            -50%
        )
        rotate(45deg);
}

.portfolio-detail-back::after {

    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 17px;
    height: 2px;

    border-radius:
        999px;

    background:
        currentColor;

    transform:
        translate(
            -35%,
            -50%
        );
}

/* =========================================================
   ICON CLOSE
========================================================= */

.portfolio-detail-close::before,
.portfolio-detail-close::after {

    content: "";

    position: absolute;

    left: 50%;
    top: 50%;

    width: 18px;
    height: 2px;

    border-radius:
        999px;

    background:
        currentColor;
}

.portfolio-detail-close::before {

    transform:
        translate(
            -50%,
            -50%
        )
        rotate(45deg);
}

.portfolio-detail-close::after {

    transform:
        translate(
            -50%,
            -50%
        )
        rotate(-45deg);
}

/* =========================================================
   HOVER
========================================================= */

.portfolio-detail-back:hover,
.portfolio-detail-close:hover {

    color:
        #ffffff;

    background:
        linear-gradient(
            145deg,
            #071b3a,
            #102d54
        );

    border-color:
        rgba(7, 27, 58, 0.25);

    box-shadow:
        0 10px 24px
        rgba(7, 27, 58, 0.18);

    transform:
        translateY(-2px);
}

.portfolio-detail-back:hover {
    transform:
        translate(
            -1px,
            -2px
        );
}

.portfolio-detail-close:hover {
    transform:
        translateY(-2px)
        rotate(90deg);
}

/* =========================================================
   ACTIVE / TAP
========================================================= */

.portfolio-detail-back:active,
.portfolio-detail-close:active {

    transform:
        scale(0.93);
}

/* =========================================================
   MOBILE HEADER
========================================================= */

@media (max-width: 600px) {

    .portfolio-detail-header {

        min-height:
            72px;

        padding:
            9px 14px;
    }

    .portfolio-detail-back,
    .portfolio-detail-close {

        width:
            44px;

        height:
            44px;

        flex-basis:
            44px;
    }

    .portfolio-detail-brand {

        gap:
            8px;

        max-width:
            calc(100vw - 130px);
    }

    .portfolio-detail-brand img {

        width:
            34px;

        height:
            34px;

        flex-basis:
            34px;
    }

    .portfolio-detail-brand-label {

        font-size:
            0.52rem;
    }

    .portfolio-detail-brand-title {

        margin-top:
            2px;

        font-size:
            0.72rem;
    }
}

/* =========================================================
   VERY SMALL PHONE
========================================================= */

@media (max-width: 380px) {

    .portfolio-detail-header {

        padding:
            8px 11px;
    }

    .portfolio-detail-back,
    .portfolio-detail-close {

        width:
            40px;

        height:
            40px;

        flex-basis:
            40px;
    }

    .portfolio-detail-brand {

        gap:
            6px;

        max-width:
            calc(100vw - 115px);
    }

    .portfolio-detail-brand img {

        width:
            31px;

        height:
            31px;

        flex-basis:
            31px;
    }

    .portfolio-detail-brand-title {

        font-size:
            0.66rem;
    }
}
