
.aeyw-wall {
    column-count: var(--aeyw-columns);
    column-gap: var(--aeyw-gap);
    background: var(--aeyw-bg);
    color: var(--aeyw-text);
}
.aeyw-wall,
.aeyw-wall * {
    box-sizing: border-box;
}
.aeyw-item {
    display: inline-block;
    width: 100%;
    margin: 0 0 var(--aeyw-gap);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    overflow: hidden;
    border-radius: var(--aeyw-radius);
    background: rgba(255,255,255,.04);
    box-shadow: 0 18px 42px rgba(0,0,0,.28);
}
.aeyw-item-link {
    position: relative;
    display: block;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
    border-radius: inherit;
}
.aeyw-media-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: inherit;
}
.aeyw-media-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: inherit;
    transition: transform .35s ease, filter .35s ease;
}
.aeyw-zoom-on .aeyw-item:hover img {
    transform: scale(1.055);
    filter: brightness(.82);
}
.aeyw-shape-short .aeyw-media-wrap,
.aeyw-shape-wide .aeyw-media-wrap,
.aeyw-shape-medium .aeyw-media-wrap,
.aeyw-shape-square .aeyw-media-wrap,
.aeyw-shape-tall .aeyw-media-wrap,
.aeyw-shape-vertical .aeyw-media-wrap {
    aspect-ratio: 16 / 9;
}
.aeyw-shape-wide .aeyw-media-wrap { aspect-ratio: 21 / 9; }
.aeyw-shape-medium .aeyw-media-wrap { aspect-ratio: 4 / 3; }
.aeyw-shape-square .aeyw-media-wrap { aspect-ratio: 1 / 1; }
.aeyw-shape-tall .aeyw-media-wrap { aspect-ratio: 2 / 3; }
.aeyw-shape-vertical .aeyw-media-wrap { aspect-ratio: 9 / 16; }
.aeyw-shape-short .aeyw-media-wrap { aspect-ratio: 2.25 / 1; }

.aeyw-shape-short img,
.aeyw-shape-wide img,
.aeyw-shape-medium img,
.aeyw-shape-square img,
.aeyw-shape-tall img,
.aeyw-shape-vertical img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.aeyw-overlay {
    position: absolute;
    inset: auto 0 0 0;
    padding: 16px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,var(--aeyw-overlay)),
        rgba(0,0,0,calc(var(--aeyw-overlay) * .72)) 58%,
        rgba(0,0,0,0)
    );
    color: var(--aeyw-text);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .25s ease, transform .25s ease;
    pointer-events: none;
}
.aeyw-overlay-on .aeyw-item:hover .aeyw-overlay,
.aeyw-overlay-on .aeyw-item:focus-within .aeyw-overlay {
    opacity: 1;
    transform: translateY(0);
}
.aeyw-overlay strong {
    display: block;
    font-size: 18px;
    line-height: 1.1;
    margin: 0 0 6px;
}
.aeyw-overlay span {
    display: block;
    color: var(--aeyw-muted);
    font-size: 14px;
    line-height: 1.35;
}
.aeyw-desc-off .aeyw-overlay span {
    display: none;
}
.aeyw-play {
    position: absolute;
    z-index: 3;
    left: 50%;
    top: 50%;
    transform: translate(-50%,-50%);
    width: 56px;
    height: 56px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(0,0,0,.58);
    border: 1px solid rgba(255,255,255,.3);
    box-shadow: 0 14px 28px rgba(0,0,0,.35);
    font-size: 20px;
    padding-left: 3px;
}
.aeyw-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    background: var(--aeyw-lightbox-bg, rgba(0,0,0,.92));
    padding: 44px 28px 96px;
}
.aeyw-lightbox.is-open {
    display: flex;
}
.aeyw-lightbox-stage {
    max-width: min(94vw, 1400px);
    max-height: 84vh;
}
.aeyw-lightbox-stage img,
.aeyw-lightbox-stage video,
.aeyw-lightbox-stage iframe {
    display: block;
    max-width: min(94vw, 1400px);
    max-height: 84vh;
    border: 0;
    border-radius: 12px;
    box-shadow: 0 28px 90px rgba(0,0,0,.6);
}
.aeyw-lightbox-stage iframe {
    width: min(94vw, 1200px);
    height: min(70vh, 675px);
}
.aeyw-lightbox-close,
.aeyw-lightbox-prev,
.aeyw-lightbox-next {
    position: fixed;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.08);
    color: #fff;
    cursor: pointer;
    z-index: 1000000;
    border-radius: 999px;
    display: grid;
    place-items: center;
    transition: background .2s ease, transform .2s ease;
}
.aeyw-lightbox-close:hover,
.aeyw-lightbox-prev:hover,
.aeyw-lightbox-next:hover {
    background: rgba(255,255,255,.16);
    transform: translateY(-1px);
}
.aeyw-lightbox-close {
    right: 24px;
    top: 24px;
    width: 44px;
    height: 44px;
    font-size: 30px;
    line-height: 1;
}
.aeyw-lightbox-prev,
.aeyw-lightbox-next {
    top: 50%;
    width: 50px;
    height: 50px;
    font-size: 34px;
    line-height: 1;
}
.aeyw-lightbox-prev { left: 24px; }
.aeyw-lightbox-next { right: 24px; }
.aeyw-lightbox-caption {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    width: min(760px, calc(100vw - 48px));
    color: #fff;
    text-align: center;
}
.aeyw-lightbox-caption h3 {
    margin: 0 0 4px;
    font-size: 18px;
}
.aeyw-lightbox-caption p {
    margin: 0;
    color: rgba(255,255,255,.76);
    font-size: 14px;
}
.aeyw-admin-note {
    padding: 12px 16px;
    background: #fff3cd;
    color: #111;
    border-radius: 10px;
}
@media (max-width: 900px) {
    .aeyw-wall {
        column-count: var(--aeyw-tablet-columns);
    }
}
@media (max-width: 640px) {
    .aeyw-wall {
        column-count: var(--aeyw-mobile-columns);
    }
    .aeyw-lightbox {
        padding: 56px 14px 96px;
    }
    .aeyw-lightbox-prev,
    .aeyw-lightbox-next {
        top: auto;
        bottom: 24px;
    }
    .aeyw-lightbox-prev { left: 24px; }
    .aeyw-lightbox-next { right: 24px; }
    .aeyw-lightbox-caption {
        bottom: 84px;
    }
}


/* AE YouTube Wall v1.1 ratio cleanup */
.aeyw-shape-wide .aeyw-media-wrap { aspect-ratio: 21 / 9 !important; }
.aeyw-shape-short .aeyw-media-wrap { aspect-ratio: 2.25 / 1 !important; }
.aeyw-shape-medium .aeyw-media-wrap { aspect-ratio: 4 / 3 !important; }
.aeyw-shape-square .aeyw-media-wrap { aspect-ratio: 1 / 1 !important; }
.aeyw-shape-tall .aeyw-media-wrap { aspect-ratio: 2 / 3 !important; }
.aeyw-shape-vertical .aeyw-media-wrap { aspect-ratio: 9 / 16 !important; }

.aeyw-shape-wide img,
.aeyw-shape-short img,
.aeyw-shape-medium img,
.aeyw-shape-square img,
.aeyw-shape-tall img,
.aeyw-shape-vertical img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/* AE YouTube Wall v1.2 single media + 16:9 */
.aeyw-shape-sixteen-nine .aeyw-media-wrap { aspect-ratio: 16 / 9 !important; }

.aeyw-shape-sixteen-nine img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}


/* AE YouTube Wall v1.3 freeform board */
.aeyw-layout-freeform {
    position: relative;
    height: var(--aeyw-board-height);
    column-count: initial !important;
    column-gap: 0 !important;
    overflow: visible;
}

.aeyw-layout-freeform .aeyw-item {
    position: absolute;
    display: block;
    margin: 0;
    break-inside: auto;
    -webkit-column-break-inside: auto;
}

.aeyw-layout-freeform .aeyw-item-link,
.aeyw-layout-freeform .aeyw-media-wrap {
    width: 100%;
    height: 100%;
}

.aeyw-layout-freeform .aeyw-media-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.aeyw-layout-freeform .aeyw-shape-auto .aeyw-media-wrap,
.aeyw-layout-freeform .aeyw-shape-sixteen-nine .aeyw-media-wrap,
.aeyw-layout-freeform .aeyw-shape-short .aeyw-media-wrap,
.aeyw-layout-freeform .aeyw-shape-wide .aeyw-media-wrap,
.aeyw-layout-freeform .aeyw-shape-medium .aeyw-media-wrap,
.aeyw-layout-freeform .aeyw-shape-square .aeyw-media-wrap,
.aeyw-layout-freeform .aeyw-shape-tall .aeyw-media-wrap,
.aeyw-layout-freeform .aeyw-shape-vertical .aeyw-media-wrap {
    aspect-ratio: auto !important;
}


/* AE YouTube Wall v3.8 removed old conflicting freeform mobile block */



/* AE YouTube Wall v3.8 removed old conflicting freeform mobile block */



/* AE YouTube Wall v1.4 polished freeform frontend */
.aeyw-layout-freeform {
    position: relative !important;
    height: var(--aeyw-board-height) !important;
    min-height: 360px;
    column-count: initial !important;
    column-gap: 0 !important;
    background: var(--aeyw-bg);
    isolation: isolate;
}

.aeyw-layout-freeform .aeyw-item {
    position: absolute !important;
    display: block !important;
    margin: 0 !important;
    overflow: visible !important;
    background: transparent !important;
    border-radius: var(--aeyw-radius) !important;
    box-shadow: none !important;
}

.aeyw-layout-freeform .aeyw-item-link {
    width: 100%;
    height: 100%;
    position: relative;
    display: block;
    border-radius: var(--aeyw-radius);
    overflow: hidden;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.10);
    box-shadow:
        0 18px 48px rgba(0,0,0,.42),
        0 1px 0 rgba(255,255,255,.12) inset;
    transition:
        transform .28s ease,
        box-shadow .28s ease,
        border-color .28s ease,
        filter .28s ease;
}

.aeyw-layout-freeform .aeyw-item-link::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
    z-index: 4;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.22),
        inset 0 -1px 0 rgba(0,0,0,.36);
}

.aeyw-layout-freeform .aeyw-item:hover .aeyw-item-link {
    transform: translateY(-7px) scale(1.012);
    border-color: rgba(255,255,255,.24);
    box-shadow:
        0 28px 68px rgba(0,0,0,.56),
        0 1px 0 rgba(255,255,255,.16) inset;
}

.aeyw-layout-freeform .aeyw-media-wrap {
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    border-radius: inherit;
    overflow: hidden;
}

.aeyw-layout-freeform .aeyw-media-wrap img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: inherit;
}

.aeyw-layout-freeform .aeyw-overlay {
    padding: 18px;
    background: linear-gradient(
        to top,
        rgba(0,0,0,var(--aeyw-overlay)),
        rgba(0,0,0,calc(var(--aeyw-overlay) * .72)) 58%,
        rgba(0,0,0,0)
    );
}

.aeyw-layout-freeform .aeyw-overlay strong {
    font-size: clamp(15px, 1.6vw, 22px);
}

.aeyw-layout-freeform .aeyw-overlay span {
    font-size: clamp(12px, 1.1vw, 14px);
}

/* Keep the designer layout on desktop. Collapse only when needed. */

/* AE YouTube Wall v3.8 removed old conflicting freeform mobile block */



/* AE YouTube Wall v3.8 removed old conflicting freeform mobile block */



/* AE YouTube Wall v1.6 WordPress/theme override for freeform layout */
.aeyw-wall.aeyw-layout-freeform {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: var(--aeyw-board-height) !important;
    min-height: 500px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    column-count: initial !important;
    column-gap: 0 !important;
    columns: initial !important;
    break-inside: auto !important;
    isolation: isolate !important;
    overflow: visible !important;
}

.aeyw-wall.aeyw-layout-freeform .aeyw-item,
.aeyw-wall.aeyw-layout-freeform figure.aeyw-item {
    position: absolute !important;
    display: block !important;
    float: none !important;
    clear: none !important;
    margin: 0 !important;
    padding: 0 !important;
    width: auto;
    max-width: none !important;
    min-width: 0 !important;
    height: auto;
    max-height: none !important;
    break-inside: auto !important;
    page-break-inside: auto !important;
    -webkit-column-break-inside: auto !important;
    overflow: visible !important;
    transform: none;
}

.aeyw-wall.aeyw-layout-freeform .aeyw-item-link {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: var(--aeyw-radius) !important;
    overflow: hidden !important;
}

.aeyw-wall.aeyw-layout-freeform .aeyw-media-wrap {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    padding: 0 !important;
}

.aeyw-wall.aeyw-layout-freeform .aeyw-media-wrap img,
.aeyw-wall.aeyw-layout-freeform .aeyw-item img,
.aeyw-wall.aeyw-layout-freeform figure img {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: inherit !important;
}

.aeyw-wall.aeyw-layout-freeform .aeyw-overlay {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 5 !important;
}

/* Keep designer placement longer. Only collapse at phone width. */

/* AE YouTube Wall v3.8 removed old conflicting freeform mobile block */



/* AE YouTube Wall v3.8 removed old conflicting freeform mobile block */



/* AE YouTube Wall v2.0 corner radius fix */
.aeyw-wall {
    --aeyw-effective-radius: var(--aeyw-radius, 22px);
}

.aeyw-item,
.aeyw-item-link,
.aeyw-media-wrap,
.aeyw-media-wrap img,
.aeyw-item img {
    border-radius: var(--aeyw-effective-radius) !important;
}

.aeyw-layout-freeform .aeyw-item,
.aeyw-layout-freeform .aeyw-item-link,
.aeyw-layout-freeform .aeyw-media-wrap,
.aeyw-layout-freeform .aeyw-media-wrap img,
.aeyw-layout-freeform .aeyw-item img {
    border-radius: var(--aeyw-effective-radius) !important;
}

/* Make sure the image clips to the rounded wrapper */
.aeyw-item,
.aeyw-item-link,
.aeyw-media-wrap {
    overflow: hidden !important;
}


/* AE YouTube Wall v2.7 editable edge controls */
.aeyw-item-link {
    border: var(--aeyw-edge-width, 1px) solid rgba(255,255,255,var(--aeyw-edge-opacity,.12)) !important;
    box-shadow:
        0 calc(18px * var(--aeyw-item-shadow,.42)) calc(48px * var(--aeyw-item-shadow,.42)) rgba(0,0,0,.46),
        inset 0 1px 0 rgba(255,255,255,var(--aeyw-edge-highlight,.22)),
        inset 0 -1px 0 rgba(0,0,0,var(--aeyw-edge-shadow,.36)) !important;
}

.aeyw-item-link::before {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,var(--aeyw-edge-highlight,.22)),
        inset 0 -1px 0 rgba(0,0,0,var(--aeyw-edge-shadow,.36)) !important;
}

.aeyw-item:hover .aeyw-item-link {
    transform: translateY(calc(var(--aeyw-hover-lift, 7px) * -1)) scale(1.012) !important;
    box-shadow:
        0 calc(28px * var(--aeyw-item-shadow,.42)) calc(68px * var(--aeyw-item-shadow,.42)) rgba(0,0,0,.56),
        inset 0 1px 0 rgba(255,255,255,calc(var(--aeyw-edge-highlight,.22) + .08)),
        inset 0 -1px 0 rgba(0,0,0,var(--aeyw-edge-shadow,.36)) !important;
}

/* Freeform-specific edge consistency */
.aeyw-layout-freeform .aeyw-item-link {
    border: var(--aeyw-edge-width, 1px) solid rgba(255,255,255,var(--aeyw-edge-opacity,.12)) !important;
}


/* AE YouTube Wall v2.8 adaptive hover text */
.aeyw-overlay {
    box-sizing: border-box !important;
    min-height: 0 !important;
    max-height: 70% !important;
    overflow: hidden !important;
    padding: clamp(8px, 1.4vw, 16px) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-end !important;
    gap: 4px !important;
}

.aeyw-overlay strong {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    text-wrap: balance;
    overflow-wrap: anywhere !important;
    word-break: normal !important;
    hyphens: auto !important;
    font-size: clamp(12px, 1.45vw, 20px) !important;
    line-height: 1.05 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

.aeyw-overlay span {
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
    overflow-wrap: anywhere !important;
    font-size: clamp(10px, 1vw, 14px) !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* Short horizontal tiles: title gets one line, description one line */
.aeyw-layout-freeform .aeyw-item[data-h^="1"] .aeyw-overlay strong,
.aeyw-layout-freeform .aeyw-item[data-h^="2"] .aeyw-overlay strong {
    -webkit-line-clamp: 1 !important;
    font-size: clamp(11px, 1.15vw, 16px) !important;
}

.aeyw-layout-freeform .aeyw-item[data-h^="1"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h^="2"] .aeyw-overlay span {
    -webkit-line-clamp: 1 !important;
    font-size: clamp(9px, .9vw, 12px) !important;
}

/* Very small tiles: title only */
.aeyw-layout-freeform .aeyw-item[data-h="5"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h="6"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h="7"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h="8"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h="9"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h^="10"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h^="11"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h^="12"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h^="13"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-h^="14"] .aeyw-overlay span {
    display: none !important;
}

/* Tiny heights should not try to show big overlay text */
.aeyw-layout-freeform .aeyw-item[data-h="5"] .aeyw-overlay,
.aeyw-layout-freeform .aeyw-item[data-h="6"] .aeyw-overlay,
.aeyw-layout-freeform .aeyw-item[data-h="7"] .aeyw-overlay,
.aeyw-layout-freeform .aeyw-item[data-h="8"] .aeyw-overlay,
.aeyw-layout-freeform .aeyw-item[data-h="9"] .aeyw-overlay {
    padding: 6px 8px !important;
    max-height: 100% !important;
}

.aeyw-layout-freeform .aeyw-item[data-h="5"] .aeyw-overlay strong,
.aeyw-layout-freeform .aeyw-item[data-h="6"] .aeyw-overlay strong,
.aeyw-layout-freeform .aeyw-item[data-h="7"] .aeyw-overlay strong,
.aeyw-layout-freeform .aeyw-item[data-h="8"] .aeyw-overlay strong,
.aeyw-layout-freeform .aeyw-item[data-h="9"] .aeyw-overlay strong {
    -webkit-line-clamp: 1 !important;
    font-size: 10px !important;
    line-height: 1 !important;
}

/* Compact widths: reduce type and description lines */
.aeyw-layout-freeform .aeyw-item[data-w^="1"] .aeyw-overlay strong,
.aeyw-layout-freeform .aeyw-item[data-w^="2"] .aeyw-overlay strong {
    font-size: clamp(11px, 1.1vw, 16px) !important;
    -webkit-line-clamp: 2 !important;
}

.aeyw-layout-freeform .aeyw-item[data-w^="1"] .aeyw-overlay span,
.aeyw-layout-freeform .aeyw-item[data-w^="2"] .aeyw-overlay span {
    font-size: clamp(9px, .85vw, 12px) !important;
    -webkit-line-clamp: 1 !important;
}

/* Make overlay feel tidier and less like a text block fighting the image */
.aeyw-overlay {
    background: linear-gradient(
        to top,
        rgba(0,0,0,calc(var(--aeyw-overlay) + .10)),
        rgba(0,0,0,calc(var(--aeyw-overlay) * .58)) 55%,
        rgba(0,0,0,0)
    ) !important;
    text-shadow: 0 2px 12px rgba(0,0,0,.75) !important;
}

/* On touch/mobile, keep text less aggressive */
@media (max-width: 640px) {
    .aeyw-overlay strong {
        font-size: 14px !important;
        -webkit-line-clamp: 2 !important;
    }
    .aeyw-overlay span {
        font-size: 12px !important;
        -webkit-line-clamp: 1 !important;
    }
}


/* AE YouTube Wall v2.9 lightbox control alignment fix */
.aeyw-lightbox-close,
.aeyw-lightbox-prev,
.aeyw-lightbox-next {
    box-sizing: border-box !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-weight: 400 !important;
    line-height: 1 !important;
}

.aeyw-lightbox-close {
    font-size: 0 !important;
}

.aeyw-lightbox-close::before {
    content: "×";
    display: block;
    font-size: 32px;
    line-height: 1;
    transform: translateY(-1px);
}

.aeyw-lightbox-prev,
.aeyw-lightbox-next {
    font-size: 0 !important;
}

.aeyw-lightbox-prev::before,
.aeyw-lightbox-next::before {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.aeyw-lightbox-prev::before {
    content: "‹";
    transform: translateX(-1px) translateY(-1px);
}

.aeyw-lightbox-next::before {
    content: "›";
    transform: translateX(1px) translateY(-1px);
}


/* AE YouTube Wall v3.8 clean separate mobile renderer */
@media (max-width: 900px) {
    .aeyw-wall.aeyw-layout-freeform {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        transform: none !important;
        overflow: visible !important;
        column-count: var(--aeyw-tablet-columns) !important;
        columns: var(--aeyw-tablet-columns) !important;
        column-gap: var(--aeyw-gap) !important;
        grid-template-columns: none !important;
        gap: 0 !important;
    }

    .aeyw-wall.aeyw-layout-freeform .aeyw-item,
    .aeyw-wall.aeyw-layout-freeform figure.aeyw-item {
        position: relative !important;
        display: inline-block !important;
        left: auto !important;
        top: auto !important;
        right: auto !important;
        bottom: auto !important;
        inset: auto !important;
        width: 100% !important;
        height: auto !important;
        max-width: 100% !important;
        z-index: auto !important;
        margin: 0 0 var(--aeyw-gap) !important;
        padding: 0 !important;
        transform: none !important;
        break-inside: avoid !important;
        -webkit-column-break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    .aeyw-wall.aeyw-layout-freeform .aeyw-item-link,
    .aeyw-wall.aeyw-layout-freeform .aeyw-media-wrap {
        display: block !important;
        width: 100% !important;
        height: auto !important;
    }

    .aeyw-wall.aeyw-layout-freeform .aeyw-media-wrap img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
    }

    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-auto .aeyw-item-link,
    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-auto .aeyw-media-wrap { aspect-ratio: auto !important; }

    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-sixteen-nine .aeyw-item-link,
    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-sixteen-nine .aeyw-media-wrap { aspect-ratio: 16 / 9 !important; }

    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-short .aeyw-item-link,
    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-short .aeyw-media-wrap { aspect-ratio: 2.25 / 1 !important; }

    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-wide .aeyw-item-link,
    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-wide .aeyw-media-wrap { aspect-ratio: 21 / 9 !important; }

    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-medium .aeyw-item-link,
    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-medium .aeyw-media-wrap { aspect-ratio: 4 / 3 !important; }

    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-square .aeyw-item-link,
    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-square .aeyw-media-wrap { aspect-ratio: 1 / 1 !important; }

    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-tall .aeyw-item-link,
    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-tall .aeyw-media-wrap { aspect-ratio: 2 / 3 !important; }

    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-vertical .aeyw-item-link,
    .aeyw-wall.aeyw-layout-freeform .aeyw-shape-vertical .aeyw-media-wrap { aspect-ratio: 9 / 16 !important; }
.aeyw-shape-vertical .aeyw-media-wrap { aspect-ratio: 9 / 16 !important; }
}

@media (max-width: 640px) {
    .aeyw-wall.aeyw-layout-freeform {
        column-count: var(--aeyw-mobile-columns) !important;
        columns: var(--aeyw-mobile-columns) !important;
    }
}


/* AE YouTube Wall v3.9 configurable tile drop shadow */
.aeyw-item-link {
    box-shadow:
        calc(var(--aeyw-shadow-enabled, 1) * var(--aeyw-shadow-x, 0px))
        calc(var(--aeyw-shadow-enabled, 1) * var(--aeyw-shadow-y, 18px))
        calc(var(--aeyw-shadow-enabled, 1) * var(--aeyw-shadow-softness, 48px))
        rgba(0,0,0,var(--aeyw-shadow-strength,.42)),
        inset 0 1px 0 rgba(255,255,255,var(--aeyw-edge-highlight,.22)),
        inset 0 -1px 0 rgba(0,0,0,var(--aeyw-edge-shadow,.36)) !important;
}

.aeyw-item:hover .aeyw-item-link {
    box-shadow:
        calc(var(--aeyw-shadow-enabled, 1) * var(--aeyw-shadow-x, 0px))
        calc(var(--aeyw-shadow-enabled, 1) * (var(--aeyw-shadow-y, 18px) + 8px))
        calc(var(--aeyw-shadow-enabled, 1) * (var(--aeyw-shadow-softness, 48px) + 20px))
        rgba(0,0,0,calc(var(--aeyw-shadow-strength,.42) + .12)),
        inset 0 1px 0 rgba(255,255,255,calc(var(--aeyw-edge-highlight,.22) + .08)),
        inset 0 -1px 0 rgba(0,0,0,var(--aeyw-edge-shadow,.36)) !important;
}
