/* ============================================================
   Image Text Overlay — Elementor Widget Styles
   ============================================================ */

/* ── Card wrapper ── */
.ito-card {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border-radius: 4px;
    /* No box-shadow */
    line-height: 0;
}

/* ── Image: always full, never cropped ── */
.ito-image {
    display: block;
    width: 100%;
    height: auto;
    transition: filter 0.6s ease, transform 0.6s ease;
    filter: brightness(0.82) saturate(1.1);
}

/* Hover effects */
.ito-hover-zoom:hover .ito-image     { transform: scale(1.04); }
.ito-hover-darken:hover .ito-image   { filter: brightness(0.55) saturate(1.2); }

/* ============================================================
   STYLE 1 — Ink-wash Band
   ============================================================ */
.ito-band {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(
        to top,
        var(--ito-band-bottom, rgba(10, 10, 10, 0.92)) 0%,
        rgba(10, 10, 10, 0.60) 55%,
        transparent 100%
    );
    padding: 44px 36px 28px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* left align */
    gap: 8px;
    line-height: 1;
    text-align: left;
}

.ito-band .ito-eyebrow {
    display: block;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #e8c87a;
    line-height: 1.4;
    text-align: left;
}

.ito-band .ito-headline {
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 36px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.1;
    margin: 0;
    text-align: left;
}

.ito-band .ito-sub {
    display: block;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.05em;
    line-height: 1.4;
    margin-top: 4px;
    text-align: left;
}

/* ============================================================
   STYLE 2 — Frosted Glass Pill
   ============================================================ */
.ito-glass {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(18px) saturate(1.8);
    -webkit-backdrop-filter: blur(18px) saturate(1.8);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 60px;
    padding: 20px 44px;
    white-space: nowrap;
    display: flex;
    flex-direction: column;
    align-items: flex-start;   /* left align */
    gap: 6px;
    line-height: 1;
    text-align: left;
}

.ito-glass .ito-glass-label {
    display: block;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.35em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.4;
    text-align: left;
}

.ito-glass .ito-glass-title {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
    text-align: left;
}

/* ============================================================
   STYLE 3 — Corner Tag + Dark Box
   ============================================================ */
.ito-tag {
    position: absolute;
    top: 24px;
    left: 24px;
    background: #e8c87a;
    color: #111111;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 8px 18px;
    border-radius: 2px;
    /* No box-shadow */
    line-height: 1.4;
}

.ito-corner-box {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 12px 20px;
    text-align: left;           /* left align */
    line-height: 1;
}

.ito-corner-box .ito-corner-title {
    display: block;
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 28px;
    color: #ffffff;
    line-height: 1;
    text-align: left;
}

.ito-corner-box .ito-corner-subtitle {
    display: block;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 10px;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    margin-top: 6px;
    line-height: 1.4;
    text-align: left;
}

/* ============================================================
   Button
   ============================================================ */
.ito-btn {
    display: inline-block;
    margin-top: 12px;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-size: 11px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: background 0.25s ease, color 0.25s ease;
    line-height: 1.4;
    cursor: pointer;
}

.ito-btn:hover {
    background: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    text-decoration: none;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 767px) {
    .ito-band .ito-headline       { font-size: 26px; }
    .ito-glass .ito-glass-title   { font-size: 22px; }
    .ito-glass                    { padding: 14px 28px; white-space: normal; width: 80%; }
    .ito-corner-box .ito-corner-title { font-size: 20px; }
}

/* ============================================================
   Card Link (whole-card <a> wrapper, URL or Lightbox mode)
   ============================================================ */
a.ito-card-link {
    color: inherit;
    text-decoration: none;
    cursor: pointer;
}

/* ============================================================
   Lightbox overlay (Card Link = Lightbox mode)
   ============================================================ */
.ito-lightbox-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: rgba(0, 0, 0, 0.8);
    align-items: center;
    justify-content: center;
    padding: 40px;
    box-sizing: border-box;
}

.ito-lightbox-overlay.ito-lightbox-open {
    display: flex;
}

body.ito-lightbox-locked {
    overflow: hidden;
}

.ito-lightbox-box {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    background: #fff;
    border-radius: 4px;
    overflow: hidden;
}

.ito-lightbox-iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.ito-lightbox-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #43695B;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    border: 0;
    border-radius: 50%;
    padding: 0;
    transition: background 0.2s ease;
}

.ito-lightbox-close:hover {
    background: #365547;
}

@media (max-width: 767px) {
    .ito-lightbox-overlay { padding: 0; }
    .ito-lightbox-box     { max-width: 100%; border-radius: 0; }
    .ito-lightbox-close   { top: 10px; right: 10px; }
}
