/* ==========================================================
   ABDELZAHER LEGAL
   GALLERY / PROFESSIONAL ARCHIVE
   Front-End Gallery Management
   ========================================================== */


/* ==========================================================
   01 — ROOT
   ========================================================== */

.az-gallery-page {
    position: relative;
    width: 100vw;
    margin-inline: calc(50% - 50vw);
    overflow: hidden;

    color: #222629;
    background: #ece8df;
}

.az-gallery-page *,
.az-gallery-page *::before,
.az-gallery-page *::after {
    box-sizing: border-box;
}

.az-gallery-page h1,
.az-gallery-page h2,
.az-gallery-page h3,
.az-gallery-page p,
.az-gallery-page figure {
    margin-top: 0;
}

.az-gallery-section-number {
    display: block;

    color: #a67c45;

    font-size: 11px;
    line-height: 1;

    font-weight: 900;
    letter-spacing: .12em;
}


/* ==========================================================
   02 — HERO
   ========================================================== */

.az-gallery-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;

    padding:
        clamp(90px, 9vw, 145px)
        0
        clamp(95px, 8vw, 135px);

    color: #fff;

    background:
        radial-gradient(
            ellipse at 13% 10%,
            rgba(255,255,255,.11),
            transparent 29%
        ),
        radial-gradient(
            ellipse at 87% 76%,
            rgba(203,164,101,.10),
            transparent 32%
        ),
        linear-gradient(
            127deg,
            #0d1012 0%,
            #171b1e 34%,
            #293036 69%,
            #3c454c 100%
        );

    border-bottom: 1px solid #080a0b;
}

.az-gallery-hero::before {
    content: "ARCHIVE";

    position: absolute;

    left: -2%;
    bottom: -5%;

    z-index: -2;

    color: rgba(255,255,255,.018);

    font-size: clamp(115px, 19vw, 300px);
    line-height: .8;

    font-weight: 900;
    letter-spacing: -.07em;

    pointer-events: none;
}

.az-gallery-hero::after {
    content: "";

    position: absolute;
    z-index: -1;

    top: -45%;
    left: 17%;

    width: 29%;
    height: 200%;

    transform: rotate(10deg);

    border-inline:
        1px solid rgba(255,255,255,.035);

    background:
        linear-gradient(
            120deg,
            rgba(255,255,255,.05),
            rgba(255,255,255,.007) 52%,
            transparent 76%
        );
}

.az-gallery-hero-inner {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0, 1.18fr)
        minmax(320px, .66fr);

    gap: clamp(55px, 8vw, 120px);

    align-items: center;
}


/* Breadcrumb */

.az-gallery-breadcrumb {
    margin-bottom: 32px;

    display: flex;
    flex-wrap: wrap;
    align-items: center;

    gap: 8px;

    color: #7d878d;

    font-size: 10px;
    font-weight: 700;
}

.az-gallery-breadcrumb a {
    color: #b0b8bd !important;
    text-decoration: none !important;

    transition: color .2s ease;
}

.az-gallery-breadcrumb a:hover {
    color: #dfc18a !important;
}


/* Hero copy */

.az-gallery-eyebrow {
    display: block;

    margin-bottom: 16px;

    color: #c79d62;

    font-size: 8px;
    font-weight: 900;

    letter-spacing: .20em;
}

.az-gallery-hero h1 {
    max-width: 900px;

    margin: 0;

    color: #fff;

    font-size: clamp(50px, 6.2vw, 86px);
    line-height: 1.04;

    font-weight: 900;
    letter-spacing: -.055em;
}

.az-gallery-hero h1 span {
    display: block;

    margin-top: 16px;

    color: #c2c8cc;

    font-size: .46em;
    line-height: 1.4;

    font-weight: 400;
    letter-spacing: -.025em;
}

.az-gallery-hero-copy > p {
    max-width: 740px;

    margin: 29px 0 0;

    color: #aeb6bb;

    font-size: clamp(14px, 1.15vw, 17px);
    line-height: 2;
}

.az-gallery-hero-actions {
    margin-top: 34px;

    display: flex;
    flex-wrap: wrap;

    gap: 12px;
}

.az-gallery-primary,
.az-gallery-secondary {
    min-height: 50px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 10px 19px;

    text-decoration: none !important;

    font-size: 10px;
    font-weight: 900;

    transition:
        transform .2s ease,
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.az-gallery-primary {
    color: #141719 !important;

    border:
        1px solid rgba(238,211,163,.56);

    background:
        linear-gradient(
            180deg,
            #efd9ae,
            #c49a60 49%,
            #dfbd82
        );

    box-shadow:
        inset 0 1px rgba(255,255,255,.65),
        0 8px 22px rgba(0,0,0,.23);
}

.az-gallery-primary:hover {
    color: #0d0f10 !important;
    transform: translateY(-3px);
}

.az-gallery-secondary {
    color: #c2c9cd !important;

    border:
        1px solid rgba(255,255,255,.15);

    background:
        rgba(255,255,255,.025);
}

.az-gallery-secondary:hover {
    color: #e3c58d !important;

    border-color:
        rgba(220,187,130,.34);

    background:
        rgba(255,255,255,.045);

    transform: translateY(-2px);
}


/* ==========================================================
   03 — HERO PANEL
   ========================================================== */

.az-gallery-hero-panel {
    position: relative;
    overflow: hidden;

    min-height: 510px;

    border:
        1px solid rgba(255,255,255,.18);

    background:
        linear-gradient(
            145deg,
            #4a535a,
            #30373d 42%,
            #1d2226 72%,
            #101315
        );

    box-shadow:
        0 34px 70px rgba(0,0,0,.38),
        inset 0 1px rgba(255,255,255,.08);
}

.az-gallery-hero-panel::after {
    content: "";

    position: absolute;

    left: 0;
    bottom: 0;

    width: 100%;
    height: 4px;

    background:
        linear-gradient(
            90deg,
            #7f5d35,
            #d3ae70 50%,
            #8b663b
        );
}

.az-gallery-panel-top {
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 0 21px;

    border-bottom:
        1px solid rgba(255,255,255,.10);

    color: #8d979d;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .17em;
}

.az-gallery-panel-top strong {
    color: #c49c66;

    font-size: 11px;
}

.az-gallery-panel-main {
    min-height: 385px;

    display: flex;
    flex-direction: column;
    justify-content: center;

    padding: 35px 29px;
}

.az-gallery-panel-mark {
    width: 84px;
    height: 84px;

    margin-bottom: 25px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(220,189,134,.34);

    border-radius: 50%;

    color: #d2b274;

    background:
        radial-gradient(
            circle,
            rgba(209,174,111,.12),
            transparent 65%
        );

    font-size: 38px;
    font-weight: 900;
}

.az-gallery-panel-main small {
    display: block;

    margin-bottom: 10px;

    color: #8f989e;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .16em;
}

.az-gallery-panel-main h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(31px, 3.5vw, 48px);
    line-height: 1.08;

    font-weight: 900;
    letter-spacing: -.04em;
}

.az-gallery-panel-main h2 span {
    display: block;

    margin-top: 7px;

    color: #b3bbc0;

    font-size: .65em;
    font-weight: 400;
}

.az-gallery-panel-main p {
    margin: 23px 0 0;

    color: #c3c9cd;

    font-size: 11px;
    line-height: 1.8;

    font-weight: 700;
}

.az-gallery-panel-bottom {
    min-height: 54px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 10px;

    padding: 0 20px;

    border-top:
        1px solid rgba(255,255,255,.08);

    color: #7f898f;

    font-size: 6.5px;
    font-weight: 900;

    letter-spacing: .11em;
}


/* ==========================================================
   04 — INTRO
   ========================================================== */

.az-gallery-intro {
    padding:
        clamp(95px, 9vw, 145px)
        0;

    background:
        linear-gradient(
            180deg,
            #f5f2eb,
            #eae6dd
        );

    border-bottom:
        1px solid rgba(31,34,36,.14);
}

.az-gallery-intro-grid {
    display: grid;

    grid-template-columns:
        90px
        minmax(0,.82fr)
        minmax(0,1fr);

    gap: clamp(35px,6vw,90px);

    align-items: start;
}

.az-gallery-intro-heading > span {
    display: block;

    margin-bottom: 12px;

    color: #987956;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .17em;
}

.az-gallery-intro-heading h2 {
    margin: 0;

    color: #202427;

    font-size: clamp(35px,4vw,58px);
    line-height: 1.25;

    font-weight: 900;
    letter-spacing: -.04em;
}

.az-gallery-intro-copy p {
    margin: 0;

    color: #656b6f;

    font-size: clamp(13px,1.1vw,16px);
    line-height: 2;
}

.az-gallery-intro-lead {
    color: #2a2e31 !important;

    font-size:
        clamp(18px,1.65vw,24px) !important;

    line-height: 1.85 !important;

    font-weight: 750;
}

.az-gallery-intro-copy p + p {
    margin-top: 24px;
}


/* ==========================================================
   05 — PHOTOS SECTION
   ========================================================== */

.az-gallery-photos {
    position: relative;

    padding:
        clamp(100px, 9vw, 150px)
        0;

    background: #111416;

    color: #fff;
}

.az-gallery-section-heading,
.az-gallery-video-heading {
    display: grid;

    grid-template-columns:
        90px
        minmax(0,1fr);

    gap: clamp(35px,6vw,90px);

    margin-bottom:
        clamp(55px,6vw,85px);
}

.az-gallery-section-heading small,
.az-gallery-video-heading small {
    display: block;

    margin-top: 9px;

    color: #858f95;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .16em;
}

.az-gallery-section-heading h2,
.az-gallery-video-heading h2 {
    margin: 0;

    color: #fff;

    font-size: clamp(40px,5vw,68px);
    line-height: 1.08;

    font-weight: 900;
    letter-spacing: -.05em;
}

.az-gallery-section-heading h2 span,
.az-gallery-video-heading h2 span {
    display: block;

    margin-top: 8px;

    color: #aeb6bb;

    font-size: .54em;
    font-weight: 400;
}

.az-gallery-section-heading p,
.az-gallery-video-heading p {
    max-width: 650px;

    margin: 18px 0 0;

    color: #9fa8ad;

    font-size: 12.5px;
    line-height: 1.95;
}


/* ==========================================================
   06 — ADMIN BAR
   ========================================================== */

.az-gallery-admin-bar {
    margin-bottom: 35px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 24px 26px;

    border:
        1px solid rgba(221,188,131,.23);

    background:
        linear-gradient(
            120deg,
            rgba(201,160,96,.10),
            rgba(255,255,255,.025)
        );

    box-shadow:
        inset 0 1px rgba(255,255,255,.04);
}

.az-gallery-admin-bar[hidden] {
    display: none !important;
}

.az-gallery-admin-copy > span {
    display: block;

    margin-bottom: 6px;

    color: #c69d63;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .16em;
}

.az-gallery-admin-copy strong {
    display: block;

    color: #fff;

    font-size: 19px;
    line-height: 1.5;
}

.az-gallery-admin-copy p {
    margin: 6px 0 0;

    color: #8f989e;

    font-size: 10.5px;
    line-height: 1.7;
}

.az-gallery-manage-button {
    min-width: 150px;
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 17px;

    border:
        1px solid rgba(237,210,160,.56);

    color: #151719;

    background:
        linear-gradient(
            180deg,
            #ecd4a7,
            #c1955a 50%,
            #ddb77c
        );

    font: inherit;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;

    transition:
        transform .2s ease,
        filter .2s ease;
}

.az-gallery-manage-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}


/* ==========================================================
   07 — UPLOAD MANAGER
   ========================================================== */

.az-gallery-manager {
    margin-bottom: 45px;

    padding: 28px;

    color: #222629;

    background:
        linear-gradient(
            135deg,
            #ded9cf,
            #f2efe8 52%,
            #d7d2c8
        );

    border-top:
        4px solid #aa814e;

    box-shadow:
        0 20px 50px rgba(0,0,0,.25);
}

.az-gallery-manager[hidden] {
    display: none !important;
}

.az-gallery-manager-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 25px;

    margin-bottom: 30px;

    padding-bottom: 20px;

    border-bottom:
        1px solid rgba(36,39,41,.15);
}

.az-gallery-manager-head span {
    display: block;

    margin-bottom: 6px;

    color: #927451;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .17em;
}

.az-gallery-manager-head h3 {
    margin: 0;

    color: #202427;

    font-size: 26px;
    line-height: 1.4;

    font-weight: 900;
}

.az-gallery-manager-close {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(31,34,36,.17);

    color: #4e5559;

    background:
        rgba(255,255,255,.35);

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}

.az-gallery-upload-grid {
    display: grid;

    grid-template-columns:
        minmax(0,1.3fr)
        minmax(260px,.7fr);

    gap: 25px;
}

.az-gallery-upload-files {
    grid-row: span 2;
}

.az-gallery-upload-field label {
    display: block;

    margin-bottom: 9px;

    color: #3a3f42;

    font-size: 10px;
    font-weight: 900;
}

.az-gallery-upload-field > small {
    display: block;

    margin-top: 7px;

    color: #777e82;

    font-size: 9px;
}

.az-gallery-upload-field input[type="text"],
.az-gallery-upload-field textarea {
    width: 100%;

    border:
        1px solid rgba(36,39,41,.20);

    border-radius: 0;

    padding: 12px 13px;

    color: #222629;

    background:
        rgba(255,255,255,.58);

    font: inherit;

    font-size: 11px;

    outline: none;

    transition:
        border-color .2s ease,
        background .2s ease;
}

.az-gallery-upload-field textarea {
    resize: vertical;

    min-height: 105px;
}

.az-gallery-upload-field input[type="text"]:focus,
.az-gallery-upload-field textarea:focus {
    border-color: #ad8655;

    background: rgba(255,255,255,.80);
}


/* File picker */

.az-gallery-file-picker {
    position: relative;

    min-height: 230px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px dashed rgba(117,89,53,.55);

    background:
        rgba(255,255,255,.33);

    overflow: hidden;
}

.az-gallery-file-picker input[type="file"] {
    position: absolute;
    inset: 0;

    width: 100%;
    height: 100%;

    opacity: 0;

    cursor: pointer;
}

.az-gallery-file-picker-copy {
    padding: 30px;

    text-align: center;

    pointer-events: none;
}

.az-gallery-file-icon {
    width: 58px;
    height: 58px;

    margin: 0 auto 15px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(162,123,73,.40);

    border-radius: 50%;

    color: #936f43;

    font-size: 25px;
}

.az-gallery-file-picker-copy strong {
    display: block;

    color: #2e3336;

    font-size: 14px;
    font-weight: 900;
}

.az-gallery-file-picker-copy small {
    display: block;

    margin-top: 7px;

    color: #858b8f;

    font-size: 8px;
}


/* Selected files */

.az-gallery-selected-files {
    margin-top: 12px;
}

.az-gallery-file-summary strong {
    color: #795d39;

    font-size: 10px;
}

.az-gallery-selected-files ul {
    margin: 10px 0 0;
    padding: 0;

    list-style: none;
}

.az-gallery-selected-files li {
    display: flex;
    justify-content: space-between;
    align-items: center;

    gap: 15px;

    padding: 7px 0;

    border-bottom:
        1px solid rgba(39,42,44,.10);

    color: #555c60;

    font-size: 9px;
}

.az-gallery-selected-files li small {
    color: #90969a;
}


/* Upload actions */

.az-gallery-upload-actions {
    margin-top: 27px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}

.az-gallery-upload-submit,
.az-gallery-upload-cancel {
    min-height: 47px;

    padding: 10px 18px;

    border-radius: 0;

    font: inherit;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;
}

.az-gallery-upload-submit {
    min-width: 145px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border:
        1px solid #957044;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #967044,
            #b18754
        );
}

.az-gallery-upload-cancel {
    border:
        1px solid rgba(34,37,39,.18);

    color: #53595d;

    background:
        rgba(255,255,255,.30);
}

.az-gallery-upload-submit:disabled {
    opacity: .55;
    cursor: wait;
}


/* Status */

.az-gallery-upload-status,
.az-gallery-edit-status {
    min-height: 20px;

    margin-top: 15px;

    font-size: 10px;
    font-weight: 800;
}

.az-gallery-upload-status.is-success,
.az-gallery-edit-status.is-success {
    color: #37714b;
}

.az-gallery-upload-status.is-error,
.az-gallery-edit-status.is-error {
    color: #9a3737;
}

.az-gallery-upload-status.is-loading,
.az-gallery-edit-status.is-loading {
    color: #8b704d;
}


/* ==========================================================
   08 — FILTERS
   ========================================================== */

.az-gallery-filters {
    margin-bottom: 32px;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}

.az-gallery-filters[hidden] {
    display: none !important;
}

.az-gallery-filters button {
    min-height: 38px;

    padding: 8px 14px;

    border:
        1px solid rgba(255,255,255,.12);

    color: #8f999f;

    background:
        rgba(255,255,255,.025);

    font: inherit;

    font-size: 9px;
    font-weight: 800;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease,
        border-color .2s ease;
}

.az-gallery-filters button:hover,
.az-gallery-filters button.is-active {
    color: #dfc18b;

    border-color:
        rgba(211,174,111,.35);

    background:
        rgba(201,158,95,.08);
}


/* ==========================================================
   09 — GALLERY GRID
   ========================================================== */

.az-gallery-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 18px;
}

.az-gallery-item {
    position: relative;

    overflow: hidden;

    margin: 0;

    border:
        1px solid rgba(255,255,255,.10);

    background: #191d20;

    box-shadow:
        0 16px 35px rgba(0,0,0,.20);
}

.az-gallery-image {
    position: relative;

    width: 100%;

    display: block;

    padding: 0;

    border: 0;

    background: #0f1214;

    cursor: zoom-in;

    overflow: hidden;
}

.az-gallery-image::after {
    content: "";

    position: absolute;
    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            180deg,
            transparent 58%,
            rgba(7,9,10,.30) 100%
        );
}

.az-gallery-image img {
    display: block;

    width: 100%;
    aspect-ratio: 4 / 3;

    object-fit: cover;

    transition:
        transform .45s ease,
        filter .45s ease;
}

.az-gallery-item:hover .az-gallery-image img {
    transform: scale(1.035);

    filter: brightness(1.04);
}

.az-gallery-item figcaption {
    padding: 18px 18px 20px;
}

.az-gallery-item-category {
    display: block;

    margin-bottom: 7px;

    color: #b58c56;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .11em;
}

.az-gallery-item figcaption strong {
    display: block;

    color: #fff;

    font-size: 14px;
    line-height: 1.6;

    font-weight: 900;
}

.az-gallery-item figcaption p {
    margin: 7px 0 0;

    color: #8f999f;

    font-size: 10px;
    line-height: 1.8;
}


/* ==========================================================
   10 — ADMIN CONTROLS ON IMAGE
   ========================================================== */

.az-gallery-item-admin {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    border-top:
        1px solid rgba(255,255,255,.08);
}

.az-gallery-item-admin button {
    min-height: 41px;

    border: 0;

    color: #aeb6bb;

    background:
        rgba(255,255,255,.025);

    font: inherit;

    font-size: 9px;
    font-weight: 900;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;
}

.az-gallery-item-edit {
    border-left:
        1px solid rgba(255,255,255,.08) !important;
}

.az-gallery-item-edit:hover {
    color: #dfc18b;

    background:
        rgba(206,166,102,.07);
}

.az-gallery-item-delete:hover {
    color: #e4a4a4;

    background:
        rgba(174,74,74,.08);
}


/* ==========================================================
   11 — LOADING / EMPTY
   ========================================================== */

.az-gallery-loading {
    min-height: 210px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 13px;

    color: #889298;
}

.az-gallery-loading[hidden] {
    display: none !important;
}

.az-gallery-loading-mark {
    width: 34px;
    height: 34px;

    border:
        2px solid rgba(255,255,255,.10);

    border-top-color:
        #c79d62;

    border-radius: 50%;

    animation:
        azGallerySpin .75s linear infinite;
}

@keyframes azGallerySpin {
    to {
        transform: rotate(360deg);
    }
}

.az-gallery-loading p {
    margin: 0;

    font-size: 10px;
}

.az-gallery-empty {
    padding: 70px 25px;

    text-align: center;

    border:
        1px solid rgba(255,255,255,.09);

    background:
        rgba(255,255,255,.018);
}

.az-gallery-empty[hidden] {
    display: none !important;
}

.az-gallery-empty > span {
    display: block;

    margin-bottom: 9px;

    color: #9d7c50;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .18em;
}

.az-gallery-empty strong {
    display: block;

    color: #d9dde0;

    font-size: 18px;
}

.az-gallery-empty p {
    margin: 9px 0 0;

    color: #858f95;

    font-size: 10px;
}


/* ==========================================================
   12 — VIDEO SECTION
   ========================================================== */

.az-gallery-videos {
    padding:
        clamp(95px,9vw,145px)
        0;

    background:
        linear-gradient(
            135deg,
            #d5d0c6,
            #f2efe8 52%,
            #dcd7cd
        );

    border-bottom:
        1px solid rgba(31,34,36,.15);
}

.az-gallery-videos .az-gallery-section-number {
    color: #a67c45;
}

.az-gallery-video-heading small {
    color: #917552;
}

.az-gallery-video-heading h2 {
    color: #202427;
}

.az-gallery-video-heading h2 span {
    color: #666d71;
}

.az-gallery-video-heading p {
    color: #696f73;
}

.az-gallery-video-placeholder {
    min-height: 245px;

    display: grid;

    grid-template-columns:
        110px
        minmax(0,1fr);

    gap: 34px;

    align-items: center;

    padding: 36px;

    border:
        1px solid rgba(34,37,39,.16);

    background:
        rgba(255,255,255,.34);
}

.az-gallery-video-icon {
    width: 96px;
    height: 96px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(151,111,64,.35);

    border-radius: 50%;

    color: #956d3f;

    background:
        radial-gradient(
            circle,
            rgba(165,125,74,.12),
            transparent 68%
        );

    font-size: 28px;
}

.az-gallery-video-placeholder span {
    display: block;

    margin-bottom: 7px;

    color: #8c7555;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .16em;
}

.az-gallery-video-placeholder h3 {
    margin: 0;

    color: #222629;

    font-size: clamp(23px,2.6vw,35px);
    line-height: 1.4;

    font-weight: 900;
}

.az-gallery-video-placeholder p {
    max-width: 680px;

    margin: 12px 0 0;

    color: #686f73;

    font-size: 11.5px;
    line-height: 1.9;
}


/* ==========================================================
   13 — IDENTITY
   ========================================================== */

.az-gallery-identity {
    padding:
        clamp(80px,8vw,120px)
        0;

    background: #f3f0e9;

    border-bottom:
        1px solid rgba(31,34,36,.14);
}

.az-gallery-identity-inner {
    display: grid;

    grid-template-columns:
        80px
        minmax(0,1fr)
        minmax(280px,.62fr);

    gap: clamp(35px,6vw,85px);

    align-items: center;
}

.az-gallery-identity-copy > span {
    display: block;

    margin-bottom: 10px;

    color: #927451;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .16em;
}

.az-gallery-identity-copy h2 {
    max-width: 750px;

    margin: 0;

    color: #202427;

    font-size: clamp(31px,3.7vw,52px);
    line-height: 1.3;

    font-weight: 900;
    letter-spacing: -.04em;
}

.az-gallery-identity-copy p {
    margin: 14px 0 0;

    color: #656b6f;

    font-size: 11.5px;
    line-height: 1.85;
}

.az-gallery-identity-copy > strong {
    display: block;

    margin-top: 9px;

    color: #8d6a40;

    font-size: 10px;
    font-weight: 900;
}

.az-gallery-office {
    padding: 23px 24px;

    border-right:
        3px solid #a67d49;

    background:
        rgba(255,255,255,.38);
}

.az-gallery-office small {
    display: block;

    margin-bottom: 8px;

    color: #8c7555;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .15em;
}

.az-gallery-office strong {
    display: block;

    color: #7f5f37;

    font-size: clamp(17px,1.5vw,22px);
    line-height: 1.55;

    font-weight: 900;
}


/* ==========================================================
   14 — FINAL CTA
   ========================================================== */

.az-gallery-final {
    position: relative;
    overflow: hidden;

    padding:
        clamp(90px,8vw,130px)
        0;

    color: #fff;

    background:
        linear-gradient(
            120deg,
            #0d1012,
            #181c1f 45%,
            #31383e
        );
}

.az-gallery-final::after {
    content: "GALLERY";

    position: absolute;

    left: -2%;
    bottom: -10%;

    color:
        rgba(255,255,255,.018);

    font-size:
        clamp(100px,18vw,280px);

    line-height: .8;

    font-weight: 900;

    pointer-events: none;
}

.az-gallery-final-inner {
    position: relative;
    z-index: 2;

    display: grid;

    grid-template-columns:
        minmax(0,1fr)
        auto;

    gap: clamp(45px,8vw,120px);

    align-items: center;
}

.az-gallery-final-inner > div:first-child > span {
    display: block;

    margin-bottom: 13px;

    color: #c49b62;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .18em;
}

.az-gallery-final h2 {
    max-width: 760px;

    margin: 0;

    color: #fff;

    font-size: clamp(36px,4.7vw,64px);
    line-height: 1.18;

    font-weight: 900;
    letter-spacing: -.045em;
}

.az-gallery-final p {
    max-width: 650px;

    margin: 20px 0 0;

    color: #aab2b7;

    font-size: 12px;
    line-height: 1.95;
}

.az-gallery-final-actions {
    min-width: 255px;

    display: flex;
    flex-direction: column;

    gap: 13px;
}

.az-gallery-final-primary {
    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 9px;

    padding: 10px 18px;

    color: #151719 !important;

    text-decoration: none !important;

    border:
        1px solid rgba(237,210,160,.52);

    background:
        linear-gradient(
            180deg,
            #edd6aa,
            #c2975b 50%,
            #deb980
        );

    font-size: 10px;
    font-weight: 900;
}

.az-gallery-final-secondary {
    text-align: center;

    color: #9fa8ad !important;

    text-decoration: none !important;

    font-size: 10px;
    font-weight: 900;
}


/* ==========================================================
   15 — EDIT DIALOG
   ========================================================== */

.az-gallery-edit-dialog {
    width: min(92vw, 620px);

    max-height: 90vh;

    padding: 0;

    border:
        1px solid rgba(225,196,145,.28);

    color: #222629;

    background:
        #ece8df;

    box-shadow:
        0 35px 90px rgba(0,0,0,.55);
}

.az-gallery-edit-dialog::backdrop,
.az-gallery-lightbox::backdrop {
    background:
        rgba(5,7,8,.80);

    backdrop-filter:
        blur(5px);
}

.az-gallery-edit-shell {
    padding: 28px;
}

.az-gallery-dialog-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;

    gap: 20px;

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(34,37,39,.14);
}

.az-gallery-dialog-head span {
    display: block;

    margin-bottom: 5px;

    color: #917451;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .16em;
}

.az-gallery-dialog-head h3 {
    margin: 0;

    color: #202427;

    font-size: 23px;
    font-weight: 900;
}

.az-gallery-dialog-head button {
    width: 38px;
    height: 38px;

    border:
        1px solid rgba(35,38,40,.16);

    color: #555c60;

    background:
        rgba(255,255,255,.30);

    font-size: 23px;

    cursor: pointer;
}

.az-gallery-edit-field {
    margin-bottom: 18px;
}

.az-gallery-edit-field label {
    display: block;

    margin-bottom: 7px;

    color: #444a4e;

    font-size: 10px;
    font-weight: 900;
}

.az-gallery-edit-field input,
.az-gallery-edit-field textarea {
    width: 100%;

    padding: 11px 12px;

    border:
        1px solid rgba(34,37,39,.18);

    border-radius: 0;

    color: #222629;

    background:
        rgba(255,255,255,.48);

    font: inherit;

    font-size: 11px;

    outline: none;
}

.az-gallery-edit-field textarea {
    resize: vertical;
}

.az-gallery-dialog-actions {
    display: flex;
    flex-wrap: wrap;

    gap: 10px;

    margin-top: 23px;
}

.az-gallery-edit-save,
.az-gallery-edit-cancel {
    min-height: 44px;

    padding: 9px 16px;

    border-radius: 0;

    font: inherit;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;
}

.az-gallery-edit-save {
    color: #fff;

    border: 1px solid #88663e;

    background: #9b7547;
}

.az-gallery-edit-cancel {
    color: #555c60;

    border:
        1px solid rgba(35,38,40,.16);

    background:
        rgba(255,255,255,.30);
}


/* ==========================================================
   16 — LIGHTBOX
   ========================================================== */

.az-gallery-lightbox {
    width: min(95vw, 1280px);
    max-width: 1280px;
    max-height: 94vh;

    padding: 0;

    border: 0;

    background: transparent;

    overflow: visible;
}

.az-gallery-lightbox figure {
    margin: 0;

    display: flex;
    flex-direction: column;

    align-items: center;
}

.az-gallery-lightbox img {
    display: block;

    max-width: 100%;
    max-height: 82vh;

    object-fit: contain;

    box-shadow:
        0 30px 90px rgba(0,0,0,.60);
}

.az-gallery-lightbox figcaption {
    max-width: 900px;

    padding: 14px 20px;

    color: #d8dde0;

    text-align: center;

    font-size: 11px;
    line-height: 1.8;
}

.az-gallery-lightbox-close {
    position: absolute;

    top: -16px;
    right: -16px;

    z-index: 5;

    width: 42px;
    height: 42px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(255,255,255,.18);

    border-radius: 50%;

    color: #fff;

    background:
        rgba(12,15,17,.85);

    font-size: 24px;

    cursor: pointer;
}


/* ==========================================================
   17 — TABLET
   ========================================================== */

@media (max-width: 1100px) {

    .az-gallery-hero-inner {
        grid-template-columns:
            minmax(0,1fr)
            minmax(300px,.62fr);

        gap: 45px;
    }

    .az-gallery-intro-grid {
        grid-template-columns:
            75px
            minmax(0,1fr);
    }

    .az-gallery-intro-copy {
        grid-column: 2;
    }

    .az-gallery-grid {
        grid-template-columns:
            repeat(2,minmax(0,1fr));
    }

    .az-gallery-identity-inner {
        grid-template-columns:
            70px
            minmax(0,1fr);
    }

    .az-gallery-office {
        grid-column: 2;
    }
}


/* ==========================================================
   18 — MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .az-gallery-hero {
        padding:
            68px 0 72px;
    }

    .az-gallery-hero-inner {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .az-gallery-hero h1 {
        font-size: 42px;
    }

    .az-gallery-hero-actions {
        flex-direction: column;
    }

    .az-gallery-primary,
    .az-gallery-secondary {
        width: 100%;
    }

    .az-gallery-hero-panel {
        min-height: 0;
    }


    /* Intro */

    .az-gallery-intro {
        padding: 72px 0;
    }

    .az-gallery-intro-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .az-gallery-intro-copy {
        grid-column: auto;
    }


    /* Gallery */

    .az-gallery-photos {
        padding: 75px 0;
    }

    .az-gallery-section-heading,
    .az-gallery-video-heading {
        grid-template-columns: 1fr;
        gap: 27px;
    }

    .az-gallery-admin-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .az-gallery-manage-button {
        width: 100%;
    }

    .az-gallery-manager {
        padding: 22px 18px;
    }

    .az-gallery-upload-grid {
        grid-template-columns: 1fr;
    }

    .az-gallery-upload-files {
        grid-row: auto;
    }

    .az-gallery-grid {
        grid-template-columns: 1fr;
    }


    /* Videos */

    .az-gallery-videos {
        padding: 72px 0;
    }

    .az-gallery-video-placeholder {
        grid-template-columns: 1fr;
        gap: 24px;

        padding: 27px 22px;
    }

    .az-gallery-video-icon {
        width: 76px;
        height: 76px;
    }


    /* Identity */

    .az-gallery-identity {
        padding: 72px 0;
    }

    .az-gallery-identity-inner {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .az-gallery-office {
        grid-column: auto;
    }


    /* Final */

    .az-gallery-final {
        padding: 75px 0;
    }

    .az-gallery-final-inner {
        grid-template-columns: 1fr;
        gap: 37px;
    }

    .az-gallery-final-actions {
        width: 100%;
        min-width: 0;
    }


    /* Lightbox */

    .az-gallery-lightbox-close {
        top: 8px;
        right: 8px;
    }
}


/* ==========================================================
   19 — SMALL MOBILE
   ========================================================== */

@media (max-width: 420px) {

    .az-gallery-hero h1 {
        font-size: 36px;
    }

    .az-gallery-intro-heading h2,
    .az-gallery-section-heading h2,
    .az-gallery-video-heading h2,
    .az-gallery-identity-copy h2,
    .az-gallery-final h2 {
        font-size: 31px;
    }

    .az-gallery-manager-head h3 {
        font-size: 21px;
    }

    .az-gallery-file-picker {
        min-height: 190px;
    }

    .az-gallery-selected-files li {
        align-items: flex-start;
        flex-direction: column;

        gap: 3px;
    }
}


/* ==========================================================
   20 — ACCESSIBILITY
   ========================================================== */

.az-gallery-breadcrumb a:focus-visible,
.az-gallery-primary:focus-visible,
.az-gallery-secondary:focus-visible,
.az-gallery-manage-button:focus-visible,
.az-gallery-upload-submit:focus-visible,
.az-gallery-upload-cancel:focus-visible,
.az-gallery-image:focus-visible,
.az-gallery-item-admin button:focus-visible,
.az-gallery-filters button:focus-visible,
.az-gallery-edit-save:focus-visible,
.az-gallery-edit-cancel:focus-visible,
.az-gallery-lightbox-close:focus-visible,
.az-gallery-final-primary:focus-visible,
.az-gallery-final-secondary:focus-visible {
    outline: 2px solid #cca76c;
    outline-offset: 4px;
}


/* ==========================================================
   21 — REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .az-gallery-primary,
    .az-gallery-secondary,
    .az-gallery-manage-button,
    .az-gallery-image img,
    .az-gallery-filters button,
    .az-gallery-item-admin button {
        transition: none !important;
    }

    .az-gallery-loading-mark {
        animation: none !important;
    }
}

/* ==========================================================
   MITHAQ — GALLERY IDENTITY
   ========================================================== */

.az-gallery-panel-office-en {
    display: block;

    margin-bottom: 7px;

    color: #98a1a7;

    font-size: 7px;

    line-height: 1.4;

    font-weight: 900;

    letter-spacing: .18em;
}


.az-gallery-panel-office-name {
    display: block;

    max-width: 330px;

    margin-bottom: 26px;

    color: #dfc18b;

    font-size:
        clamp(18px, 1.7vw, 24px);

    line-height: 1.55;

    font-weight: 900;
}


.az-gallery-panel-professor {
    margin-top: 23px !important;
}


.az-gallery-panel-professor b {
    display: block;

    margin-top: 5px;

    color: #d2b174;

    font-size: 9px;

    line-height: 1.6;

    font-weight: 900;
}


.az-gallery-office-professor {
    display: block;

    margin-top: 10px;

    color: #555b5f;

    font-size: 10px;

    line-height: 1.7;

    font-weight: 700;
}


.az-gallery-office-title {
    display: block;

    margin-top: 3px;

    color: #8d6940;

    font-size: 9px;

    font-weight: 900;
}


@media (max-width: 767px) {

    .az-gallery-panel-office-name {
        max-width: none;

        font-size: 19px;
    }

}

/* ==========================================================
   22 — VIDEO LIBRARY
   Front-End Management + Dynamic Video Grid
   ========================================================== */


/* ==========================================================
   VIDEO ADMIN BAR
   ========================================================== */

.az-video-admin-bar {
    margin-bottom: 34px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;

    padding: 24px 26px;

    border:
        1px solid rgba(151, 112, 68, .22);

    background:
        linear-gradient(
            120deg,
            rgba(166, 124, 69, .09),
            rgba(255,255,255,.30)
        );

    box-shadow:
        inset 0 1px rgba(255,255,255,.42);
}


.az-video-admin-bar[hidden] {
    display: none !important;
}


.az-video-admin-copy > span {
    display: block;

    margin-bottom: 6px;

    color: #94734c;

    font-size: 7px;
    line-height: 1.3;

    font-weight: 900;

    letter-spacing: .17em;
}


.az-video-admin-copy strong {
    display: block;

    color: #23272a;

    font-size: 19px;
    line-height: 1.5;

    font-weight: 900;
}


.az-video-admin-copy p {
    margin: 6px 0 0;

    color: #747b7f;

    font-size: 10.5px;
    line-height: 1.7;
}


.az-video-manage-button {
    min-width: 155px;
    min-height: 48px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 18px;

    border:
        1px solid #927047;

    border-radius: 0;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #8f6a40,
            #b18754
        );

    font: inherit;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(92,66,36,.14);

    transition:
        transform .2s ease,
        filter .2s ease;
}


.az-video-manage-button:hover {
    transform: translateY(-2px);
    filter: brightness(1.07);
}


/* ==========================================================
   VIDEO MANAGER
   ========================================================== */

.az-video-manager {
    margin-bottom: 42px;

    padding: 28px;

    border-top:
        4px solid #9d7749;

    color: #25292c;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,.60),
            rgba(230,226,217,.84)
        );

    box-shadow:
        0 18px 45px rgba(42,37,30,.12);
}


.az-video-manager[hidden] {
    display: none !important;
}


.az-video-manager-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 25px;

    margin-bottom: 28px;

    padding-bottom: 19px;

    border-bottom:
        1px solid rgba(36,39,41,.14);
}


.az-video-manager-head span {
    display: block;

    margin-bottom: 6px;

    color: #98764e;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .17em;
}


.az-video-manager-head h3 {
    margin: 0;

    color: #222629;

    font-size: 26px;
    line-height: 1.4;

    font-weight: 900;
}


.az-video-manager-close {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    border:
        1px solid rgba(35,38,40,.17);

    color: #555c60;

    background:
        rgba(255,255,255,.45);

    font-size: 24px;
    line-height: 1;

    cursor: pointer;
}


/* ==========================================================
   VIDEO ADD FORM
   ========================================================== */

.az-video-form-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 22px;
}


.az-video-description-field {
    grid-column: 1 / -1;
}


.az-video-field label {
    display: block;

    margin-bottom: 8px;

    color: #41474a;

    font-size: 10px;
    font-weight: 900;
}


.az-video-field input,
.az-video-field textarea {
    width: 100%;

    padding: 12px 13px;

    border:
        1px solid rgba(36,39,41,.20);

    border-radius: 0;

    outline: none;

    color: #222629;

    background:
        rgba(255,255,255,.63);

    font: inherit;

    font-size: 11px;

    transition:
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}


.az-video-field input:focus,
.az-video-field textarea:focus {
    border-color: #a27a49;

    background: #fff;

    box-shadow:
        0 0 0 2px rgba(166,124,69,.08);
}


.az-video-field textarea {
    min-height: 120px;

    resize: vertical;
}


.az-video-field > small {
    display: block;

    margin-top: 7px;

    color: #888e92;

    font-size: 8px;
    line-height: 1.6;
}


.az-video-form-actions {
    margin-top: 25px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


.az-video-submit,
.az-video-cancel {
    min-height: 46px;

    padding: 9px 18px;

    border-radius: 0;

    font: inherit;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;
}


.az-video-submit {
    min-width: 160px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    border:
        1px solid #8c683e;

    color: #fff;

    background:
        linear-gradient(
            145deg,
            #8e693f,
            #af8450
        );
}


.az-video-submit:disabled {
    opacity: .55;

    cursor: wait;
}


.az-video-cancel {
    border:
        1px solid rgba(35,38,40,.17);

    color: #555c60;

    background:
        rgba(255,255,255,.42);
}


.az-video-status,
.az-video-edit-status {
    min-height: 20px;

    margin-top: 14px;

    font-size: 10px;
    font-weight: 800;
}


.az-video-status.is-success,
.az-video-edit-status.is-success {
    color: #38724b;
}


.az-video-status.is-error,
.az-video-edit-status.is-error {
    color: #9b3b3b;
}


.az-video-status.is-loading,
.az-video-edit-status.is-loading {
    color: #8a6b45;
}


/* ==========================================================
   VIDEO FILTERS
   ========================================================== */

.az-video-filters {
    margin: 5px 0 30px;

    display: flex;
    flex-wrap: wrap;

    gap: 8px;
}


.az-video-filters[hidden] {
    display: none !important;
}


.az-video-filters button {
    min-height: 38px;

    padding: 8px 14px;

    border:
        1px solid rgba(48,52,55,.14);

    color: #6d7478;

    background:
        rgba(255,255,255,.34);

    font: inherit;

    font-size: 9px;
    font-weight: 850;

    cursor: pointer;

    transition:
        color .2s ease,
        border-color .2s ease,
        background .2s ease;
}


.az-video-filters button:hover,
.az-video-filters button.is-active {
    color: #805e37;

    border-color:
        rgba(156,116,69,.40);

    background:
        rgba(166,124,69,.10);
}


/* ==========================================================
   VIDEO GRID
   ========================================================== */

.az-video-grid {
    display: grid;

    grid-template-columns:
        repeat(2, minmax(0,1fr));

    gap: 22px;
}


.az-video-item {
    position: relative;

    overflow: hidden;

    border:
        1px solid rgba(34,37,39,.14);

    background:
        rgba(255,255,255,.42);

    box-shadow:
        0 18px 38px rgba(40,35,29,.10);
}


/* ==========================================================
   VIDEO MEDIA
   ========================================================== */

.az-video-item-media {
    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #15191c,
            #2c3338
        );
}


.az-video-item-media iframe {
    position: absolute;

    inset: 0;

    width: 100% !important;
    height: 100% !important;

    max-width: none !important;

    border: 0;
}


.az-video-item-media > div,
.az-video-item-media > p,
.az-video-item-media blockquote {
    max-width: 100% !important;
}


.az-video-external-link {
    position: absolute;

    inset: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 12px;

    padding: 30px;

    color: #fff !important;

    text-decoration: none !important;

    background:
        radial-gradient(
            circle at center,
            rgba(188,148,88,.16),
            transparent 48%
        );
}


.az-video-external-link span {
    width: 68px;
    height: 68px;

    display: flex;
    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(222,190,134,.45);

    border-radius: 50%;

    color: #d5b276;

    font-size: 22px;
}


.az-video-external-link strong {
    color: #e4e7e9;

    font-size: 11px;
    font-weight: 900;
}


/* ==========================================================
   VIDEO BODY
   ========================================================== */

.az-video-item-body {
    padding: 20px 20px 22px;
}


.az-video-item-meta {
    display: flex;
    flex-wrap: wrap;

    gap: 7px;

    margin-bottom: 10px;
}


.az-video-provider,
.az-video-item-category {
    display: inline-flex;
    align-items: center;

    min-height: 23px;

    padding: 4px 8px;

    border:
        1px solid rgba(151,112,68,.18);

    color: #8d6c46;

    background:
        rgba(166,124,69,.07);

    font-size: 7px;
    line-height: 1;

    font-weight: 900;

    letter-spacing: .06em;
}


.az-video-item-body h3 {
    margin: 0;

    color: #25292c;

    font-size:
        clamp(17px,1.5vw,22px);

    line-height: 1.55;

    font-weight: 900;
}


.az-video-item-body p {
    margin: 10px 0 0;

    color: #6d7478;

    font-size: 10.5px;
    line-height: 1.85;
}


/* ==========================================================
   VIDEO ITEM ADMIN CONTROLS
   ========================================================== */

.az-video-item-admin {
    display: grid;

    grid-template-columns:
        1fr 1fr;

    border-top:
        1px solid rgba(34,37,39,.11);
}


.az-video-item-admin button {
    min-height: 42px;

    padding: 8px 10px;

    border: 0;

    color: #656c70;

    background:
        rgba(255,255,255,.25);

    font: inherit;

    font-size: 9px;
    font-weight: 900;

    cursor: pointer;

    transition:
        color .2s ease,
        background .2s ease;
}


.az-video-item-edit {
    border-left:
        1px solid rgba(34,37,39,.11) !important;
}


.az-video-item-edit:hover {
    color: #87653e;

    background:
        rgba(166,124,69,.09);
}


.az-video-item-delete:hover {
    color: #a03f3f;

    background:
        rgba(166,65,65,.07);
}


/* ==========================================================
   VIDEO LOADING
   ========================================================== */

.az-video-loading {
    min-height: 200px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 13px;

    color: #737a7e;
}


.az-video-loading[hidden] {
    display: none !important;
}


.az-video-loading-mark {
    width: 34px;
    height: 34px;

    border:
        2px solid rgba(43,47,50,.12);

    border-top-color:
        #a67c45;

    border-radius: 50%;

    animation:
        azVideoSpin .75s linear infinite;
}


@keyframes azVideoSpin {

    to {
        transform: rotate(360deg);
    }

}


.az-video-loading p {
    margin: 0;

    font-size: 10px;
}


/* ==========================================================
   VIDEO EMPTY STATE
   ========================================================== */

.az-video-empty {
    padding: 65px 24px;

    text-align: center;

    border:
        1px solid rgba(34,37,39,.13);

    background:
        rgba(255,255,255,.28);
}


.az-video-empty[hidden] {
    display: none !important;
}


.az-video-empty > span {
    display: block;

    margin-bottom: 9px;

    color: #96744c;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .17em;
}


.az-video-empty strong {
    display: block;

    color: #2a2e31;

    font-size: 19px;
    line-height: 1.5;
}


.az-video-empty p {
    margin: 9px 0 0;

    color: #757c80;

    font-size: 10px;
    line-height: 1.8;
}


/* ==========================================================
   VIDEO EDIT DIALOG
   ========================================================== */

.az-video-edit-dialog {
    width:
        min(92vw, 650px);

    max-height: 90vh;

    padding: 0;

    border:
        1px solid rgba(213,181,126,.30);

    color: #222629;

    background: #ece8df;

    box-shadow:
        0 35px 90px rgba(0,0,0,.55);
}


.az-video-edit-dialog::backdrop {
    background:
        rgba(5,7,8,.80);

    backdrop-filter:
        blur(5px);
}


.az-video-edit-shell {
    padding: 28px;
}


.az-video-dialog-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;

    gap: 20px;

    margin-bottom: 25px;

    padding-bottom: 18px;

    border-bottom:
        1px solid rgba(34,37,39,.14);
}


.az-video-dialog-head span {
    display: block;

    margin-bottom: 5px;

    color: #927451;

    font-size: 7px;
    font-weight: 900;

    letter-spacing: .16em;
}


.az-video-dialog-head h3 {
    margin: 0;

    color: #202427;

    font-size: 23px;
    line-height: 1.4;

    font-weight: 900;
}


.az-video-dialog-head button {
    width: 38px;
    height: 38px;

    padding: 0;

    border:
        1px solid rgba(35,38,40,.16);

    color: #555c60;

    background:
        rgba(255,255,255,.30);

    font-size: 23px;

    cursor: pointer;
}


.az-video-edit-field {
    margin-bottom: 18px;
}


.az-video-edit-field label {
    display: block;

    margin-bottom: 7px;

    color: #444a4e;

    font-size: 10px;
    font-weight: 900;
}


.az-video-edit-field input,
.az-video-edit-field textarea {
    width: 100%;

    padding: 11px 12px;

    border:
        1px solid rgba(34,37,39,.18);

    border-radius: 0;

    color: #222629;

    background:
        rgba(255,255,255,.48);

    font: inherit;

    font-size: 11px;

    outline: none;
}


.az-video-edit-field input:focus,
.az-video-edit-field textarea:focus {
    border-color: #a67c45;

    background: #fff;
}


.az-video-edit-field textarea {
    resize: vertical;
}


.az-video-dialog-actions {
    margin-top: 23px;

    display: flex;
    flex-wrap: wrap;

    gap: 10px;
}


.az-video-edit-save,
.az-video-edit-cancel {
    min-height: 44px;

    padding: 9px 16px;

    border-radius: 0;

    font: inherit;

    font-size: 10px;
    font-weight: 900;

    cursor: pointer;
}


.az-video-edit-save {
    color: #fff;

    border:
        1px solid #88663e;

    background: #9b7547;
}


.az-video-edit-save:disabled {
    opacity: .55;

    cursor: wait;
}


.az-video-edit-cancel {
    color: #555c60;

    border:
        1px solid rgba(35,38,40,.16);

    background:
        rgba(255,255,255,.30);
}


/* ==========================================================
   VIDEO ACCESSIBILITY
   ========================================================== */

.az-video-manage-button:focus-visible,
.az-video-submit:focus-visible,
.az-video-cancel:focus-visible,
.az-video-filters button:focus-visible,
.az-video-item-admin button:focus-visible,
.az-video-external-link:focus-visible,
.az-video-edit-save:focus-visible,
.az-video-edit-cancel:focus-visible,
.az-video-dialog-head button:focus-visible,
.az-video-manager-close:focus-visible {
    outline:
        2px solid #b58b55;

    outline-offset: 4px;
}


/* ==========================================================
   VIDEO TABLET
   ========================================================== */

@media (max-width: 900px) {

    .az-video-form-grid {
        grid-template-columns: 1fr;
    }


    .az-video-description-field {
        grid-column: auto;
    }


    .az-video-grid {
        grid-template-columns: 1fr;
    }

}


/* ==========================================================
   VIDEO MOBILE
   ========================================================== */

@media (max-width: 767px) {

    .az-video-admin-bar {
        flex-direction: column;
        align-items: stretch;

        padding: 21px 18px;
    }


    .az-video-manage-button {
        width: 100%;
    }


    .az-video-manager {
        padding: 22px 18px;
    }


    .az-video-manager-head h3 {
        font-size: 22px;
    }


    .az-video-form-actions {
        flex-direction: column;
    }


    .az-video-submit,
    .az-video-cancel {
        width: 100%;
    }


    .az-video-item-body {
        padding: 18px;
    }


    .az-video-edit-shell {
        padding: 22px 18px;
    }

}


/* ==========================================================
   VIDEO REDUCED MOTION
   ========================================================== */

@media (prefers-reduced-motion: reduce) {

    .az-video-manage-button,
    .az-video-filters button,
    .az-video-item-admin button {
        transition: none !important;
    }


    .az-video-loading-mark {
        animation: none !important;
    }

}