/* Dark first-paint: avoid white flash before style.css dark rules apply */
html.dark-mode .container-single-post .container-post,
.dark-mode .container-single-post .container-post {
    background-color: #000 !important;
    border-color: #6b2dada3;
}
html.dark-mode .single-post-content-box,
.dark-mode .single-post-content-box {
    background: #1a1a1a;
}

/* Smooth enter — opacity only (no translate) so thumbs never shift */
@keyframes single-post-enter {
    from { opacity: 0; }
    to { opacity: 1; }
}
.container-single-post {
    animation: single-post-enter 0.18s ease-out both;
}
@media (prefers-reduced-motion: reduce) {
    .container-single-post {
        animation: none;
    }
}

.container-post .slider-item{
    width: 100%;
}

.container-post .slider-item img{
    width: 100%!important;
}

/* Disable browser tooltips while preserving title attribute */
[title] {
    position: relative;
}
[title]:hover:after {
    content: none !important;
}

.container-post{
    padding-top: 14px;
    padding-bottom: 14px;
    padding-left: 10px;
    padding-right: 10px;
    border: 2px solid #F8F2FF;
    border-radius: 8px;
    background: #fff;
    line-height: 16px;

}
.container-post .slider-item {
    display: flex; /* Use flexbox for better alignment */
    align-items: center; /* Vertically center images */
    justify-content: center; /* Center horizontally */
    width: 100%;
    overflow: hidden; /* Prevent overflow if images are taller */
}

.container-post .slider-item img {
    width: 100%!important; /* Make images responsive */
    height: auto; /* Maintain aspect ratio */
    transition: all 0.3s ease-in-out; /* Smooth height changes */
}

.container-single-post .featured .container-post{
  border: 2px solid red;
}

.container-post .item-models__text{
  height: auto;
}

.container-single-post .card {
    height: auto;
}

.container-single-post .card img{
    width: 100%;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
}

.container-single-post .random-post .item-models__text {
    height: auto;
    overflow: hidden;
    font-size: 11px;
    line-height: 13px;
    height: 27px;
    overflow: hidden;
}

.container-single-post .random-post a{
  word-break: break-all;
}

.container-single-post .featured #modalTitle a{
    color: red;
}

.container-single-post .featured #modalphone_number a{
    color: red;
}

.container-single-post .random-post{
    margin-bottom: 0px;
    cursor: pointer;
}

.container-single-post .card-snippets{
  flex-wrap: wrap;
  line-height: 0px;
}

.container-single-post .random-post .card-title.title-name{
  height: 16px;
  overflow: hidden;
  line-height: 15px;
}


.container-single-post .random-post.featured::after {
    bottom: -18px;
    width: 45px;
    height: 42px;
}


.container-single-post .featured #modalcity a, .container-single-post .featured #modalemail a{
    color: #6A11CF;
}

.container-single-post .random-post a{
  color: black;
  font-size: 14px;
}

.container-single-post .random-post.featured .card-title a{
  color: red;
}

.container-single-post .random-post .card-title{
  margin-bottom: 0px;
}

.container-single-post .random-post .tile-city{
  gap: 1px;
}

.container-single-post .random-post.featured .random-city a{
  color: #6A11CF;
}

.container-single-post .body-random-ads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.container-single-post .single-post-random-all.body-random-ads .random-post {
  width: 20%;
  max-width: 220px;
  min-width: 0;
  flex: 0 0 auto;
  box-sizing: border-box;
}

@media only screen and (max-width: 767px) {
  .container-single-post .single-post-random-all.body-random-ads .random-post {
    width: 48%;
    max-width: none;
  }
}

.single-post-layout {
  display: block;
}

.single-post-random-all {
  margin-top: 1.25rem;
}

.container-single-post .socialiconsatag {
    display: inline-flex;
    gap: 1px;
}

/* Override listing modal rule (.modal-body .row { flex-direction: column }) on single ad page */
.container-single-post .modal-body .single-post-media-text {
    flex-direction: row !important;
    align-items: flex-start !important;
}

@media (max-width: 767.98px) {
    .container-single-post .modal-body .single-post-media-text {
        flex-direction: column !important;
    }
}

.single-post-media-text {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap;
    align-items: flex-start;
    margin-top: 0 !important;
}

.single-post-gallery-col {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    order: 1;
}

.single-post-text-col {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    order: 2;
}

@media (min-width: 768px) {
    .single-post-gallery-col {
        flex: 0 0 48%;
        max-width: 48%;
        width: 48%;
    }

    .single-post-text-col {
        flex: 0 0 52%;
        max-width: 52%;
        width: 52%;
        align-self: flex-start;
    }

    .single-post-text-col .single-post-content-box {
        margin-top: 0;
    }
}

.container-single-post .container-post {
    padding-top: 6px;
}

.single-post-title-bar {
    width: 100%;
    margin-bottom: 0;
    text-align: left;
}

.single-post-title-bar__row {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.4rem 0.55rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: #222;
    white-space: nowrap;
}

.single-post-title-bar__row a {
    color: inherit;
    text-decoration: none;
}

.single-post-title-bar__row .seperator-voilet {
    color: #6a11cf;
    font-weight: 700;
    flex: 0 0 auto;
}

.single-post-title-bar__row > span,
.single-post-title-bar__row > g {
    flex: 0 0 auto;
}

.single-post-title-bar__row #modalcity a {
    margin-right: 0;
}

.single-post-title-bar__row #modalphone_number a {
    color: inherit;
    text-decoration: none;
    word-break: break-all;
}

.single-post-publish-date {
    margin: 0.08rem 0 0.18rem;
    font-size: 0.82rem;
    color: #828282;
    line-height: 1.2;
    text-align: left;
}

/* Keep thumbs under the gallery column (no right-side jump); images keep natural height */
.single-post-gallery-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
    align-self: flex-start;
}

.single-post-gallery-col .sliderAppend {
    margin-top: 0 !important;
    width: 100%;
    max-width: 100%;
    overflow: visible;
    position: relative;
}

/* Before Slick inits, raw slides stack vertically — show only the active/first slide */
.container-single-post .sliderAppend .slick-slider:not(.slick-initialized) > .slider-item,
.container-single-post .sliderAppend .slick-slider:not(.slick-initialized) > div {
    display: none !important;
}
.container-single-post .sliderAppend .slick-slider:not(.slick-initialized) > .slider-item.pre-slick-active,
.container-single-post .sliderAppend .slick-slider:not(.slick-initialized) > .slider-item:first-child,
.container-single-post .sliderAppend .slick-slider:not(.slick-initialized) > div.pre-slick-active,
.container-single-post .sliderAppend .slick-slider:not(.slick-initialized) > div:only-child {
    display: block !important;
}

.single-post-gallery-col .goofg {
    width: 100%;
    flex-shrink: 0;
    overflow: visible;
}

.single-post-gallery-col .slider-item {
    cursor: inherit;
}

.single-post-gallery-col .slick-list {
    cursor: zoom-in;
}

.single-post-gallery-col .slick-prev,
.single-post-gallery-col .slick-next {
    z-index: 12 !important;
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.single-post-gallery-col .slider-item img,
.single-post-gallery-col .slider-item video {
    width: 100% !important;
    height: auto;
    display: block;
    border-radius: 8px;
    background: #1a0a2e;
}

/* Video: clip all four corners on the wrap (native video often skips left radius). */
.single-post-gallery-col .slider-item--video {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    transform: translateZ(0);
    background: #1a0a2e;
}
.single-post-gallery-col .slider-item--video video {
    border-radius: inherit;
}
/* Keep red play centered before deferred video CSS lands */
.single-post-gallery-col .post-video-play-facade {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    appearance: none;
    -webkit-appearance: none;
    color: #ff0000;
    cursor: pointer;
}
.single-post-gallery-col .post-video-play-facade__icon {
    font-size: clamp(2.4rem, 8vmin, 3.4rem);
    line-height: 1;
    color: #ff0000;
    filter: drop-shadow(0 3px 14px rgba(0, 0, 0, 0.55));
}
.single-post-gallery-col .post-video-play-facade__text {
    display: none !important;
}
.single-post-gallery-col .slider-item--video.is-playing .post-video-play-facade {
    display: none;
}

.single-post-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    width: 100%;
    max-width: 100%;
    flex-shrink: 0;
    /* Keep thumbs in the gallery column flow; never float beside text */
    position: relative;
    clear: both;
}

.single-post-thumb {
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    position: relative;
}

.single-post-thumb img,
.single-post-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-post-thumb.is-video .single-post-thumb__play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 1.55rem;
    height: 1.55rem;
    color: #ff0000;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
    pointer-events: none;
}
.single-post-thumb.is-video .single-post-thumb__play-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}
.single-post-thumb.is-active {
    border-color: #6a11cf;
}

.single-post-text-col .item-models__text {
    margin-bottom: 0;
    margin-top: 0;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-break: anywhere;
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.container-single-post .single-post-text-col .item-models__text {
    height: auto !important;
    overflow: visible !important;
}

.single-post-text-col .post-extra-display {
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
}

.single-post-gallery-col .post-extra-display {
    margin-top: 1rem;
}

@media (min-width: 768px) {
    .single-post-gallery-col .post-extra-display,
    .single-post-text-col .post-extra-display {
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }
}

/* Phone portrait: stack gallery → ad text → profile → rates → hours → services */
@media only screen and (max-width: 767.98px) and (orientation: portrait) {
    .container-single-post .modal-body .single-post-media-text,
    .single-post-media-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
    }

    .single-post-gallery-col,
    .single-post-text-col,
    .single-post-gallery-col .post-extra-display,
    .single-post-text-col .post-extra-display {
        display: contents;
    }

    .single-post-gallery-col .goofg {
        order: 1;
        width: 100%;
    }

    .single-post-gallery-col .single-post-thumbs {
        order: 2;
        width: 100%;
    }

    .single-post-text-col .single-post-description-box {
        order: 3;
        width: 100%;
        margin-top: 0.35rem;
    }

    .single-post-media-text [data-post-extra-section="profile"] {
        order: 4;
        width: 100%;
        margin-top: 1rem;
    }

    .single-post-media-text [data-post-extra-section="rates"] {
        order: 5;
        width: 100%;
        margin-top: 1rem;
    }

    .single-post-media-text [data-post-extra-section="working_hours"] {
        order: 6;
        width: 100%;
        margin-top: 1rem;
    }

    .single-post-media-text [data-post-extra-section="services"] {
        order: 7;
        width: 100%;
        margin-top: 1rem;
    }
}

.single-post-top-head {
    display: none;
}

.container-single-post .featured .single-post-title-bar__row,
.container-single-post .featured .single-post-title-bar__row a {
    color: #e53935;
}

.container-single-post .featured .single-post-title-bar__row #modalcity a {
    color: #6a11cf;
}

html.dark-mode .single-post-title-bar__row,
html.dark-mode .single-post-title-bar__row a,
.dark-mode .single-post-title-bar__row,
.dark-mode .single-post-title-bar__row a {
    color: #f2f2f2;
}

html.dark-mode .container-single-post .featured .single-post-title-bar__row,
html.dark-mode .container-single-post .featured .single-post-title-bar__row a,
.dark-mode .container-single-post .featured .single-post-title-bar__row,
.dark-mode .container-single-post .featured .single-post-title-bar__row a {
    color: #ff6666;
}

.single-post-content-box {
    border: 1px solid rgba(106, 17, 207, 0.22);
    border-radius: 10px;
    background: #fff;
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
}

.single-post-description-box {
    padding: 0.35rem 0.4rem;
}

@media (min-width: 768px) {
    .single-post-description-box {
        padding: 0.3rem 0.35rem;
    }
}

.single-post-description-box .item-models__text {
    margin: 0;
    line-height: 1.42;
}

.single-post-content-box:last-child {
    margin-bottom: 0;
}

.single-post-content-box .item-models__text {
    margin: 0;
    white-space: pre-wrap;
    word-break: break-all;
    overflow-wrap: anywhere;
    line-break: anywhere;
}

.single-post-extra-box__title {
    margin: 0 0 0.75rem;
    font-size: 1rem;
    font-weight: 800;
    color: #6a11cf;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    text-align: left;
}

.container-single-post .featured .single-post-extra-box__title {
    color: #e53935;
}

html.dark-mode .single-post-content-box,
.dark-mode .single-post-content-box {
    background: #1a1a1a;
    border-color: rgba(106, 17, 207, 0.35);
}

.post-extra-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0;
}

.post-extra-display .single-post-content-box {
    margin-bottom: 0;
}

.post-extra-display__section + .post-extra-display__section {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.post-extra-display__heading {
    display: none;
}

.post-extra-display__profile {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    margin: 0;
}

.post-extra-display__profile-row {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 0.4rem;
    margin: 0;
}

.post-extra-display__profile-row dt {
    flex: 0 0 auto;
    max-width: none;
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
    color: #6a11cf;
    text-transform: none;
    white-space: nowrap;
}

.post-extra-display__profile-row dd {
    flex: 1;
    margin: 0;
    font-size: 0.95rem;
    font-weight: 400;
    color: #222;
    word-break: break-word;
}

html.dark-mode .post-extra-display__profile-row dd,
.dark-mode .post-extra-display__profile-row dd {
    color: #f2f2f2;
}

.post-extra-display__table-wrap {
    overflow-x: auto;
}

.post-extra-display__table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.post-extra-display__table th {
    background: #591e98;
    color: #fff;
    font-weight: 700;
    text-align: left;
    padding: 0.45rem 0.55rem;
    border: 0;
}

.post-extra-display__table {
    border-collapse: separate;
    border-spacing: 0;
}

.post-extra-display__table thead tr th:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.post-extra-display__table thead tr th:last-child {
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.post-extra-display__table td {
    padding: 0.4rem 0.55rem;
    border-bottom: 1px solid rgba(106, 17, 207, 0.12);
    vertical-align: top;
}

.post-extra-display__table--services td:first-child {
    font-weight: 600;
    color: #6a11cf;
}

.post-extra-display__table--hours {
    width: auto;
    max-width: 100%;
}

.post-extra-display__table--hours td:first-child {
    font-weight: 600;
    color: #6a11cf;
    text-transform: lowercase;
    width: 5.5rem;
    white-space: nowrap;
}

.post-extra-display__table--hours th:nth-child(2),
.post-extra-display__table--hours th:nth-child(3),
.post-extra-display__table--hours td:nth-child(2),
.post-extra-display__table--hours td:nth-child(3) {
    width: 4.75rem;
    text-align: left;
    padding-left: 0.2rem;
}

.post-extra-display__green-badge {
    display: inline-block;
    background-color: green;
    color: #fff;
    padding: 0.15rem 0.55rem;
    border-radius: 4px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: lowercase;
}

/* Full-screen gallery lightbox (viewport/track — no Slick) */
.single-post-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483640;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1rem 0.75rem 1.25rem;
    background: rgba(0, 0, 0, 0.92);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.28s ease, visibility 0.28s ease;
    touch-action: manipulation;
}

.single-post-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.single-post-lightbox[hidden] {
    display: none !important;
}

.single-post-lightbox__close {
    position: absolute;
    top: 0.65rem;
    right: 0.85rem;
    z-index: 20;
    border: 0;
    background-color: #D3D3D3;
    color: transparent;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    width: 3rem;
    height: 3rem;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
    transition: background-color 0.15s ease;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

/* Geometric × — font-independent, matches forum lightbox close */
.single-post-lightbox__close::before,
.single-post-lightbox__close::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 22px;
    height: 3.5px;
    margin: 0;
    border-radius: 1px;
    background: #ff0000;
    pointer-events: none;
}

.single-post-lightbox__close::before {
    transform: translate(-50%, -50%) rotate(45deg);
}

.single-post-lightbox__close::after {
    transform: translate(-50%, -50%) rotate(-45deg);
}

.single-post-lightbox__close:hover,
.single-post-lightbox__close:focus-visible,
.single-post-lightbox__close:active {
    background-color: #9ACD32;
    color: transparent;
}

.single-post-lightbox__close:focus:not(:focus-visible) {
    background-color: #D3D3D3;
}

.single-post-lightbox__stage {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    max-width: 1200px;
    min-height: 0;
}

.single-post-lightbox__main {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 1200px;
    min-height: 0;
    gap: 0.35rem;
}

.single-post-lightbox__indicators {
    position: absolute;
    top: 2%;
    left: 2%;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.35);
    border-radius: 999px;
    padding: 0 8px;
    box-sizing: border-box;
    overflow: visible;
    pointer-events: auto;
    user-select: none;
    -webkit-user-select: none;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.single-post-lightbox__indicators[hidden] {
    display: none !important;
}

.single-post-lightbox__indicators-prev,
.single-post-lightbox__indicators-next {
    border: 0;
    background: transparent;
    color: #00c853;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    padding: 5px 10px;
    font-family: 'Manrope', sans-serif;
}

.single-post-lightbox__indicators-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    margin: -6px -4px;
    touch-action: none;
}

.single-post-lightbox__indicators-dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 50%;
    padding: 0;
    background: #ccc;
    cursor: pointer;
    display: inline-block;
    transform-origin: center center;
    transition: transform 0.12s ease, background-color 0.12s ease;
    will-change: transform;
}

.single-post-lightbox__indicators-dot.is-active {
    background: #00c853;
}

.single-post-lightbox__indicators-dot.is-touched {
    background: #00c853;
    transform: scale(2.4);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35);
}

.single-post-lightbox__viewport {
    position: relative;
    width: 100%;
    flex: 0 0 auto;
    overflow: hidden;
    touch-action: pan-x pinch-zoom;
    user-select: none;
    -webkit-user-select: none;
    border-radius: 8px;
    -webkit-tap-highlight-color: transparent;
}

.single-post-lightbox__viewport.is-dragging {
    cursor: grabbing;
}

.single-post-lightbox__track {
    position: relative;
    z-index: 1;
    display: flex;
    width: auto;
    transition: transform 0.5s ease;
    will-change: transform;
}

.single-post-lightbox__slide {
    flex: 0 0 auto;
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.single-post-lightbox__slide img,
.single-post-lightbox__slide video {
    max-width: 100%;
    max-height: calc(100vh - 9rem);
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
    border-radius: 8px;
    user-select: none;
    margin: 0 auto;
    background: #12061f;
}

.single-post-lightbox__slide--video {
    border-radius: 8px;
    overflow: hidden;
    transform: translateZ(0);
    background: #12061f;
}
.single-post-lightbox__slide--video video {
    border-radius: inherit;
}
.single-post-lightbox__slide--video .post-video-play-facade {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    color: #ff0000;
    cursor: pointer;
}
.single-post-lightbox__slide--video.is-playing .post-video-play-facade {
    display: none;
}

body.single-post-lightbox-open {
    overflow: hidden;
}

/* Same chrome as site slick gallery arrows (#imageModal / gallery-indicators) */
.single-post-lightbox__nav {
    font-size: 0;
    line-height: 0;
    position: absolute;
    top: 50%;
    display: block;
    width: 44px;
    height: 44px;
    padding: 0;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    cursor: pointer;
    z-index: 12;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    color: transparent;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

.single-post-lightbox__nav:hover,
.single-post-lightbox__nav:focus {
    color: transparent;
    outline: none;
    background: transparent;
}

.single-post-lightbox__nav::before {
    content: '<' !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    font-family: 'Manrope', sans-serif !important;
    font-weight: 800;
    font-size: 34px !important;
    line-height: 1 !important;
    min-height: 1.15em;
    color: #ffffff !important;
    background-color: rgba(0, 0, 0, 0.5) !important;
    padding: 0 9px !important;
    border-radius: 4px;
    opacity: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.single-post-lightbox__nav--next::before {
    content: '>' !important;
}

.single-post-lightbox__nav:disabled::before {
    opacity: 0.25;
}

.single-post-lightbox__nav--prev {
    left: 0.35rem;
}

.single-post-lightbox__nav--next {
    right: 0.35rem;
}

.single-post-lightbox__thumbs {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    width: auto;
    max-width: 100%;
    padding: 0 0.25rem 0.25rem;
    -webkit-overflow-scrolling: touch;
    touch-action: manipulation;
}

.single-post-lightbox__thumb {
    position: relative;
    flex: 0 0 auto;
    width: 72px;
    height: 72px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 8px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
}

.single-post-lightbox__thumb img,
.single-post-lightbox__thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.single-post-lightbox__thumb video {
    pointer-events: none;
}

.single-post-lightbox__thumb.is-video .single-post-thumb__play-badge {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 1.35rem;
    height: 1.35rem;
    color: #ff0000;
    filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.65));
    pointer-events: none;
}
.single-post-lightbox__thumb.is-video .single-post-thumb__play-badge svg {
    width: 100%;
    height: 100%;
    display: block;
}

.single-post-lightbox__thumb.is-active {
    border-color: #6a11cf;
}

@media (max-width: 767.98px) {
    .container-single-post .container-post {
        padding-top: 4px;
    }

    .single-post-title-bar__row {
        flex-wrap: nowrap;
        white-space: nowrap;
        gap: 0.3rem 0.45rem;
    }

    .single-post-publish-date {
        margin: 0.05rem 0 0.12rem;
    }

    .single-post-media-text {
        --bs-gutter-y: 0.35rem;
    }

    .single-post-gallery-col .sliderAppend,
    .single-post-thumbs {
        width: 100%;
    }
}

@media (max-width: 767.98px), ((orientation: landscape) and (max-height: 767.98px) and (pointer: coarse)) {
    .single-post-lightbox {
        justify-content: flex-start;
        align-items: stretch;
        padding: 0;
    }

    .single-post-lightbox__stage {
        width: 100%;
        max-width: none;
        padding: 0;
    }

    .single-post-lightbox__main {
        width: 100%;
        max-width: none;
    }

    .single-post-lightbox__slide img {
        width: 100%;
        max-width: 100%;
        max-height: none;
        height: auto;
        border-radius: 0;
    }

    .single-post-lightbox__thumbs {
        padding: 0 0.5rem 1rem;
    }

    .single-post-lightbox__close {
        top: 0.5rem;
        right: 0.5rem;
    }

    .single-post-lightbox__nav--prev {
        left: 3px;
    }

    .single-post-lightbox__nav--next {
        right: 3px;
    }
}

@media (orientation: landscape) and (max-height: 767.98px) and (pointer: coarse) {
    .single-post-lightbox.is-open {
        display: block;
        overflow-x: hidden;
        overflow-y: scroll;
        -webkit-overflow-scrolling: touch;
        height: 100dvh;
        max-height: 100dvh;
        padding: 0;
        overscroll-behavior: contain;
        touch-action: auto;
    }

    .single-post-lightbox__stage,
    .single-post-lightbox__main {
        width: 100%;
        max-width: none;
    }

    /* Keep horizontal swipe + edge taps on the image; pan-y lets the page
       still scroll vertically to the thumbnail row. */
    .single-post-lightbox__viewport {
        touch-action: pan-y pinch-zoom;
        overflow: hidden;
    }

    .single-post-lightbox.is-open .single-post-lightbox__close {
        position: fixed;
    }
}


