/* =========================================================
   SkyPrint — Choose Star Map
   Блок: "Обрати свою зоряну карту"
   Логіка:
   - білий фон каталогу;
   - верхній вибір типу карти;
   - на мобільному 4 блоки вибору = 2×2 без горизонтального скролу;
   - секції товарів: Найпопулярніші / З фото / Преміум / Люмінесцентні;
   - зображення 1548×1800 без обрізання.
   ========================================================= */

.choose-star-map {
    position: relative;
    padding: 72px 0;
    background: #ffffff;
    border-top: 1px solid rgba(32, 40, 56, 0.08);
    border-bottom: 1px solid rgba(32, 40, 56, 0.08);
}

.choose-star-map * {
    box-sizing: border-box;
}

/* ------------------------------
   Header
   ------------------------------ */

.csm-head {
    max-width: 780px;
    margin: 0 auto 32px;
    text-align: center;
}

.csm-kicker {
    margin-bottom: 8px;
    color: #9b7a35;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.csm-head h2 {
    margin: 0 0 14px;
    color: #202838;
    font-size: 36px;
    line-height: 1.16;
    font-weight: 800;
}

.csm-head p {
    margin: 0;
    color: #606978;
    font-size: 16px;
    line-height: 1.58;
}

/* ------------------------------
   Choice navigation
   ------------------------------ */

.csm-choice-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 46px;
}

.csm-choice-card,
.csm-choice-card:hover,
.csm-choice-card:visited,
.csm-choice-card:active {
    display: block;
    min-height: 145px;
    padding: 20px 18px;
    background: #f7f6f3;
    color: #202838;
    border: 1px solid rgba(32, 40, 56, 0.08);
    border-radius: 14px;
    text-decoration: none;
    box-shadow: 0 7px 20px rgba(32, 40, 56, 0.045);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease,
        background-color 0.22s ease;
}

.csm-choice-card:hover {
    transform: translateY(-3px);
    background: #ffffff;
    border-color: rgba(155, 122, 53, 0.28);
    box-shadow: 0 14px 34px rgba(32, 40, 56, 0.1);
    color: #202838;
}

.csm-choice-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 24px;
    margin-bottom: 15px;
    padding: 0 8px;
    background: #202838;
    color: #ffffff;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 800;
}

.csm-choice-card strong {
    display: block;
    margin-bottom: 7px;
    color: #202838;
    font-size: 17px;
    line-height: 1.25;
    font-weight: 800;
}

.csm-choice-card small {
    display: block;
    color: #606978;
    font-size: 13px;
    line-height: 1.4;
}

/* ------------------------------
   Product sections
   ------------------------------ */

.csm-block {
    margin-bottom: 58px;
    padding-top: 34px;
    border-top: 1px solid rgba(32, 40, 56, 0.08);
}

.csm-choice-nav + .csm-block {
    padding-top: 0;
    border-top: none;
}

.csm-block:last-child {
    margin-bottom: 0;
}

.csm-block-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(32, 40, 56, 0.06);
}

.csm-block-head > div {
    max-width: 820px;
}

.csm-block-label {
    margin-bottom: 6px;
    color: #9b7a35;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.csm-block-head h3 {
    margin: 0 0 8px;
    color: #202838;
    font-size: 28px;
    line-height: 1.2;
    font-weight: 800;
}

.csm-block-head p {
    margin: 0;
    color: #606978;
    font-size: 15px;
    line-height: 1.55;
}

/* ------------------------------
   Grid
   ------------------------------ */

.csm-grid {
    margin-left: -10px;
    margin-right: -10px;
}

.csm-col {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 20px;
}

/* ------------------------------
   Product card
   ------------------------------ */

.csm-card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #ffffff;
    border: 1px solid rgba(32, 40, 56, 0.1);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(32, 40, 56, 0.06);
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.csm-card:hover {
    transform: translateY(-3px);
    border-color: rgba(155, 122, 53, 0.26);
    box-shadow: 0 14px 34px rgba(32, 40, 56, 0.11);
}

.csm-card-premium {
    background: linear-gradient(180deg, #ffffff 0%, #fbfaf7 100%);
    border-color: rgba(155, 122, 53, 0.22);
}

/* ------------------------------
   Image
   Фото зазвичай 1548×1800, тому ratio = 116.28%
   ------------------------------ */

.csm-img {
    position: relative;
    display: block;
    overflow: hidden;
    /*background: #f1f0ec;*/
    text-decoration: none;
    padding-top: 10px;
}

.csm-img:before {
    content: "";
    display: block;
    padding-top: 116.28%;
}

.csm-img img {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    width: 100%;
    height: 100% !important;
    object-fit: contain;
    object-position: center center;
    transition: opacity 0.22s ease;
}

.csm-card:hover .csm-img img {
    opacity: 0.96;
}

/* ------------------------------
   Badge
   ------------------------------ */

.csm-badge {
    position: absolute;
    z-index: 2;
    top: 16px;
    left: 11px;
    max-width: calc(100% - 22px);
    padding: 6px 9px;
    background: rgba(32, 40, 56, 0.92);
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    white-space: nowrap;
}

/* ------------------------------
   Card body
   ------------------------------ */

.csm-body {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 16px 16px 18px;
}

.csm-body h4 {
    margin: 0 0 7px;
    color: #202838;
    font-size: 18px;
    line-height: 1.24;
    font-weight: 800;
}

.csm-body p {
    margin: 0 0 13px;
    color: #606978;
    font-size: 13px;
    line-height: 1.43;
}

.csm-price {
    margin-top: auto;
    margin-bottom: 13px;
    color: #202838;
    font-size: 13px;
    line-height: 1.25;
}

.csm-price strong {
    font-size: 21px;
    font-weight: 800;
}

.csm-price span {
    display: block;
    margin-top: 3px;
    color: #7b828d;
    font-size: 11px;
    line-height: 1.25;
}

/* ------------------------------
   Product button
   ------------------------------ */

.csm-btn,
.csm-btn:hover,
.csm-btn:visited,
.csm-btn:active {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    width: 100%;
    padding: 0 14px;
    background: #202838;
    color: #ffffff;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    transition: background-color 0.2s ease;
}

.csm-btn:hover {
    background: #151c29;
    color: #ffffff;
}

/* ------------------------------
   Show more button
   ------------------------------ */

.csm-more-wrap {
    display: flex;
    justify-content: center;
    margin-top: 4px;
}

.csm-more-btn,
.csm-more-btn:hover,
.csm-more-btn:visited,
.csm-more-btn:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 26px;
    background: #ffffff;
    color: #202838;
    border: 1px solid rgba(32, 40, 56, 0.14);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(32, 40, 56, 0.06);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.csm-more-btn:hover {
    background: #202838;
    color: #ffffff;
    border-color: #202838;
    box-shadow: 0 12px 30px rgba(32, 40, 56, 0.16);
}

.csm-more-btn-dark,
.csm-more-btn-dark:hover,
.csm-more-btn-dark:visited,
.csm-more-btn-dark:active {
    background: #202838;
    color: #ffffff;
    border-color: #202838;
}

.csm-more-btn-dark:hover {
    background: #151c29;
    color: #ffffff;
    border-color: #151c29;
}

/* ------------------------------
   Tablet
   ------------------------------ */

@media (max-width: 991.98px) {
    .choose-star-map {
        padding: 56px 0;
    }

    .csm-head {
        margin-bottom: 28px;
    }

    .csm-head h2 {
        font-size: 31px;
    }

    .csm-choice-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        margin-bottom: 38px;
    }

    .csm-choice-card,
    .csm-choice-card:hover,
    .csm-choice-card:visited,
    .csm-choice-card:active {
        min-height: 132px;
    }

    .csm-block {
        margin-bottom: 48px;
        padding-top: 30px;
    }

    .csm-block-head h3 {
        font-size: 25px;
    }
}

/* ------------------------------
   Mobile
   ------------------------------ */

@media (max-width: 767.98px) {
    .choose-star-map {
        padding: 42px 0;
    }

    .csm-head {
        margin-bottom: 24px;
        text-align: left;
    }

    .csm-head h2 {
        font-size: 26px;
    }

    .csm-head p {
        font-size: 14px;
        line-height: 1.5;
    }

    .csm-choice-nav {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 30px;
        overflow: visible;
        padding: 0;
    }

    .csm-choice-card,
    .csm-choice-card:hover,
    .csm-choice-card:visited,
    .csm-choice-card:active {
        min-height: 116px;
        padding: 14px 12px;
        border-radius: 13px;
        box-shadow: 0 6px 18px rgba(32, 40, 56, 0.045);
    }

    .csm-choice-label {
        min-width: 30px;
        height: 21px;
        margin-bottom: 10px;
        padding: 0 7px;
        font-size: 9px;
    }

    .csm-choice-card strong {
        margin-bottom: 5px;
        font-size: 14px;
        line-height: 1.22;
    }

    .csm-choice-card small {
        font-size: 11px;
        line-height: 1.32;
    }

    .csm-block {
        margin-bottom: 42px;
        padding-top: 26px;
    }

    .csm-block-head {
        display: block;
        margin-bottom: 16px;
        padding-bottom: 12px;
    }

    .csm-block-label {
        font-size: 11px;
    }

    .csm-block-head h3 {
        font-size: 23px;
    }

    .csm-block-head p {
        font-size: 13px;
        line-height: 1.48;
    }

    .csm-grid {
        margin-left: -6px;
        margin-right: -6px;
    }

    .csm-col {
        padding-left: 6px;
        padding-right: 6px;
        margin-bottom: 12px;
    }

    .csm-card {
        border-radius: 12px;
        box-shadow: 0 6px 18px rgba(32, 40, 56, 0.055);
    }

    .csm-badge {
        top: 8px;
        left: 8px;
        max-width: calc(100% - 16px);
        padding: 5px 7px;
        font-size: 9px;
    }

    .csm-body {
        padding: 10px 9px 10px;
    }

    .csm-body h4 {
        margin-bottom: 5px;
        font-size: 13px;
        line-height: 1.22;
    }

    .csm-body p {
        display: none;
    }

    .csm-price {
        margin-bottom: 8px;
        font-size: 10.5px;
    }

    .csm-price strong {
        font-size: 15px;
    }

    .csm-price span {
        font-size: 9.5px;
        line-height: 1.22;
    }

    .csm-btn,
    .csm-btn:hover,
    .csm-btn:visited,
    .csm-btn:active {
        min-height: 32px;
        padding: 0 8px;
        border-radius: 8px;
        font-size: 11.5px;
    }

    .csm-more-wrap {
        margin-top: 8px;
    }

    .csm-more-btn,
    .csm-more-btn:hover,
    .csm-more-btn:visited,
    .csm-more-btn:active {
        width: 100%;
        min-height: 42px;
        padding: 0 18px;
        font-size: 13px;
    }
}

/* ------------------------------
   Very small mobile
   ------------------------------ */

@media (max-width: 370px) {
    .csm-choice-card,
    .csm-choice-card:hover,
    .csm-choice-card:visited,
    .csm-choice-card:active {
        min-height: 108px;
        padding: 12px 10px;
    }

    .csm-choice-card strong {
        font-size: 13px;
    }

    .csm-choice-card small {
        font-size: 10px;
    }

    .csm-body h4 {
        font-size: 12.5px;
    }

    .csm-price strong {
        font-size: 14px;
    }

    .csm-btn,
    .csm-btn:hover,
    .csm-btn:visited,
    .csm-btn:active {
        font-size: 11px;
    }
}



.csm-discount-badge {
    position: absolute;
    z-index: 3;
    top: 11px;
    right: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    background: #b9463c;
    color: #ffffff;
    border-radius: 999px;
    font-size: 12px;
    line-height: 1;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(185, 70, 60, 0.22);
}

.csm-card.is-sale {
    border-color: rgba(185, 70, 60, 0.22);
}

.csm-old-price {
    display: inline-block;
    margin-right: 6px;
    color: #8b929d;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: line-through;
    font-weight: 600;
}
@media (max-width: 767.98px) {
    .csm-discount-badge {
        top: 8px;
        right: 8px;
        min-height: 23px;
        padding: 0 7px;
        font-size: 10px;
    }

    .csm-old-price {
        display: block;
        margin-right: 0;
        margin-bottom: 2px;
        font-size: 9.5px;
    }
}



.csm-sale-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 0 0 38px;
    padding: 18px 20px;
    background: #202838;
    color: #ffffff;
    border-radius: 14px;
    box-shadow: 0 12px 30px rgba(32, 40, 56, 0.14);
}

.csm-sale-strip strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 800;
}

.csm-sale-strip span {
    display: block;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    line-height: 1.4;
}

.csm-sale-strip a,
.csm-sale-strip a:hover,
.csm-sale-strip a:visited,
.csm-sale-strip a:active {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 40px;
    padding: 0 16px;
    background: #ffffff;
    color: #202838;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 767.98px) {
    .csm-sale-strip {
        display: block;
        margin-bottom: 30px;
        padding: 16px 14px;
    }

    .csm-sale-strip strong {
        font-size: 16px;
    }

    .csm-sale-strip span {
        font-size: 12px;
    }

    .csm-sale-strip a {
        width: 100%;
        margin-top: 13px;
        min-height: 38px;
        font-size: 12px;
    }
}


.csm-popular-format {
    margin-bottom: 13px;
    padding: 9px 10px;
    background: #f7f6f3;
    color: #606978;
    border: 1px solid rgba(32, 40, 56, 0.07);
    border-radius: 9px;
    font-size: 12px;
    line-height: 1.35;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .csm-popular-format {
        display: none;
    }
}


.csm-photo-note {
    margin-bottom: 22px;
    padding: 16px 18px;
    background: #202838;
    color: #ffffff;
    border-radius: 14px;
}

.csm-photo-note strong {
    display: block;
    margin-bottom: 4px;
    font-size: 17px;
    font-weight: 800;
}

.csm-photo-note span {
    display: block;
    color: rgba(255,255,255,0.78);
    font-size: 14px;
    line-height: 1.45;
}






.csm-glow-clarification {
    margin: -6px 0 24px;
    padding: 14px 16px;
    background: #f7f6f3;
    color: #606978;
    border: 1px solid rgba(32, 40, 56, 0.08);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.5;
}



.csm-glow-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
    padding: 24px;
    background: #202838;
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(32, 40, 56, 0.16);
    overflow: hidden;
}

.csm-glow-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.csm-glow-kicker {
    margin-bottom: 8px;
    color: #c7ff4f;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.csm-glow-text h4 {
    margin: 0 0 14px;
    color: #ffffff;
    font-size: 25px;
    line-height: 1.22;
    font-weight: 800;
}

.csm-glow-text p {
    margin: 0 0 12px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.55;
}

.csm-glow-points {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 8px;
    margin-bottom: 16px;
}

.csm-glow-points span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}

.csm-glow-note-small {
    padding: 13px 14px;
    background: rgba(199, 255, 79, 0.1);
    color: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(199, 255, 79, 0.18);
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
}

.csm-glow-photos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.csm-glow-photo {
    position: relative;
    overflow: hidden;
    min-height: 100%;
    background: #f1f0ec;
    border-radius: 13px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.csm-glow-photo:before {
    content: "";
    display: block;
    padding-top: 122%;
}

.csm-glow-photo img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
    object-position: center center;
}

.csm-glow-photo span {
    position: absolute;
    z-index: 2;
    left: 10px;
    top: 10px;
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 0 10px;
    background: rgba(32, 40, 56, 0.9);
    color: #ffffff;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
}

.csm-glow-photo-night span {
    background: rgba(199, 255, 79, 0.95);
    color: #202838;
}


@media (max-width: 991.98px) {
    .csm-glow-info {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .csm-glow-text h4 {
        font-size: 23px;
    }

    .csm-glow-photos {
        max-width: 640px;
    }
}

@media (max-width: 767.98px) {
    .csm-glow-info {
        margin-bottom: 22px;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .csm-glow-kicker {
        font-size: 11px;
    }

    .csm-glow-text h4 {
        font-size: 20px;
        line-height: 1.25;
    }

    .csm-glow-text p {
        font-size: 12.5px;
        line-height: 1.48;
    }

    .csm-glow-points {
        gap: 6px;
        margin-bottom: 13px;
    }

    .csm-glow-points span {
        min-height: 27px;
        padding: 0 9px;
        font-size: 11px;
    }

    .csm-glow-note-small {
        padding: 12px 12px;
        font-size: 12px;
        line-height: 1.42;
    }

    .csm-glow-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .csm-glow-photo {
        border-radius: 11px;
    }

    .csm-glow-photo:before {
        padding-top: 120%;
    }

    .csm-glow-photo span {
        left: 8px;
        top: 8px;
        min-height: 23px;
        padding: 0 8px;
        font-size: 10px;
    }
}



.csm-photo-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.75fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 26px;
    padding: 24px;
    background: #202838;
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(32, 40, 56, 0.16);
    overflow: hidden;
}

.csm-photo-note-label {
    margin-bottom: 8px;
    color: #d5ad5d;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 1.1px;
    text-transform: uppercase;
}

.csm-photo-note-text h4 {
    margin: 0 0 12px;
    color: #ffffff;
    font-size: 24px;
    line-height: 1.22;
    font-weight: 800;
}

.csm-photo-note-text p {
    max-width: 620px;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    line-height: 1.55;
}

.csm-photo-note-points {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.csm-photo-note-points span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    font-size: 12px;
    line-height: 1.2;
    font-weight: 700;
}
.csm-photo-note-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.csm-photo-note-img {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 21 / 29.7;
    background: #f7f6f3;
    border: 1px solid rgba(32, 40, 56, 0.08);
    border-radius: 12px;
    overflow: hidden;
}

.csm-photo-note-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center center;
}

@media (max-width: 991.98px) {
    .csm-photo-note {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .csm-photo-note-gallery {
        max-width: 560px;
    }
}

@media (max-width: 767.98px) {
    .csm-photo-note {
        margin-bottom: 22px;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .csm-photo-note-text h4 {
        font-size: 20px;
        line-height: 1.25;
    }

    .csm-photo-note-text p {
        font-size: 12.5px;
        line-height: 1.48;
    }

    .csm-photo-note-points {
        gap: 6px;
    }

    .csm-photo-note-points span {
        min-height: 27px;
        padding: 0 9px;
        font-size: 11px;
    }

    .csm-photo-note-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 7px;
    }

    .csm-photo-note-img {
        border-radius: 9px;
    }

    .csm-photo-note-img:before {
        padding-top: 125%;
    }
}

@media (max-width: 767.98px) {
    .csm-photo-note-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.csm-photo-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: center;
    margin-bottom: 26px;
    padding: 24px;
    background: #202838;
    color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 38px rgba(32, 40, 56, 0.16);
    overflow: hidden;
}

.csm-photo-note-gallery-compact {
    gap: 10px;
}

.csm-photo-note-gallery-compact .csm-photo-note-img {
    aspect-ratio: 21 / 29.7;
}

.csm-photo-note-img {
    position: relative;
    overflow: hidden;
    background: #f1f0ec;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.csm-photo-note-img:before {
    content: "";
    display: block;
    padding-top: 125%;
}

.csm-photo-note-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    display: block;
    object-fit: cover;
    object-position: center center;
}
.csm-photo-note-img img {
    object-fit: contain;
}


@media (max-width: 991.98px) {
    .csm-photo-note {
        grid-template-columns: 1fr;
        gap: 18px;
        padding: 22px;
    }

    .csm-photo-note-gallery-compact {
        max-width: 420px;
    }
}

@media (max-width: 767.98px) {
    .csm-photo-note {
        margin-bottom: 22px;
        padding: 18px 14px;
        border-radius: 14px;
    }

    .csm-photo-note-gallery-compact {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        max-width: none;
        gap: 7px;
    }

    .csm-photo-note-img {
        border-radius: 8px;
    }

    .csm-photo-note-img:before {
        padding-top: 120%;
    }
}