.ii-photo-gallery {
    position: relative;
    padding: 4rem 0;
    background: #1c1917;
    color: #fff;
    border-bottom: 1px solid #292524;
}
.ii-gallery-inner {
    width: min(100% - 2rem, 80rem);
    margin: 0 auto;
}
.ii-gallery-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.5rem;
}
.ii-gallery-heading-copy {
    max-width: 44rem;
}
.ii-gallery-badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-bottom: .5rem;
    padding: .35rem .8rem;
    border: 1px solid #44403c;
    border-radius: 999px;
    background: #292524;
    color: #d6d3d1;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ii-gallery-badge .dashicons {
    width: 15px;
    height: 15px;
    font-size: 15px;
    line-height: 15px;
}
.ii-gallery-heading-copy h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -.03em;
    text-transform: uppercase;
}
.ii-gallery-heading-copy p {
    max-width: 40rem;
    margin: .4rem 0 0;
    color: #a8a29e;
    font-size: .85rem;
    font-weight: 500;
    line-height: 1.7;
}
.ii-gallery-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: .75rem;
}
.ii-gallery-view-button {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .65rem 1rem;
    border-radius: .75rem;
    background: #f5f5f4;
    color: #1c1917;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background .2s ease, transform .2s ease;
}
.ii-gallery-view-button:hover {
    background: #e7e5e4;
    color: #1c1917;
    transform: translateY(-1px);
}
.ii-gallery-view-button .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
}
.ii-gallery-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .45rem;
}
.ii-gallery-filter {
    padding: .55rem .85rem;
    border: 1px solid #44403c;
    border-radius: .65rem;
    background: rgba(41,37,36,.8);
    color: #d6d3d1;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .05em;
    cursor: pointer;
    text-transform: uppercase;
    transition: all .2s ease;
}
.ii-gallery-filter:hover {
    background: #292524;
    color: #fff;
}
.ii-gallery-filter.is-active {
    border-color: #fff;
    background: #f5f5f4;
    color: #1c1917;
    box-shadow: 0 6px 15px rgba(0,0,0,.2);
}
.ii-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
}
.ii-gallery-card {
    position: relative;
    height: 18rem;
    overflow: hidden;
    border: 1px solid #292524;
    border-radius: 1rem;
    background: #0c0a09;
    cursor: pointer;
    box-shadow: 0 15px 30px rgba(0,0,0,.25);
    transition: transform .3s ease, border-color .3s ease;
}
.ii-gallery-card[hidden] {
    display: none;
}
.ii-gallery-card:hover {
    border-color: rgba(234,179,8,.5);
    transform: translateY(-6px);
}
.ii-gallery-card-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .7s ease;
}
.ii-gallery-card:hover .ii-gallery-card-image {
    transform: scale(1.1);
}
.ii-gallery-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(12,10,9,.96), rgba(12,10,9,.35) 55%, transparent);
    opacity: .82;
    transition: opacity .3s ease;
}
.ii-gallery-card:hover .ii-gallery-card-gradient {
    opacity: .92;
}
.ii-gallery-card-zoom {
    position: absolute;
    top: .75rem;
    right: .75rem;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: .75rem;
    background: rgba(0,0,0,.7);
    color: #fff;
    cursor: pointer;
    opacity: 0;
    backdrop-filter: blur(8px);
    transition: opacity .2s ease, color .2s ease, background .2s ease;
}
.ii-gallery-card:hover .ii-gallery-card-zoom {
    opacity: 1;
}
.ii-gallery-card-zoom:hover {
    background: #000;
    color: #fbbf24;
}
.ii-gallery-card-zoom .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
    line-height: 16px;
}
.ii-gallery-card-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    padding: 1.25rem;
}
.ii-gallery-location {
    display: inline-block;
    padding: .15rem .45rem;
    border: 1px solid rgba(234,179,8,.3);
    border-radius: .25rem;
    background: rgba(0,0,0,.5);
    color: #eab308;
    font-size: .58rem;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
}
.ii-gallery-card-content h3 {
    margin: .35rem 0 0;
    color: #fff;
    font-size: .95rem;
    font-weight: 900;
    line-height: 1.25;
    text-transform: uppercase;
    transition: color .2s ease;
}
.ii-gallery-card:hover .ii-gallery-card-content h3 {
    color: #fcd34d;
}
.ii-gallery-enlarge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .6rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: #eab308;
    font-size: .65rem;
    font-weight: 900;
    cursor: pointer;
    transition: transform .2s ease;
}
.ii-gallery-enlarge:hover {
    transform: translateX(4px);
}
.ii-gallery-enlarge .dashicons {
    width: 14px;
    height: 14px;
    font-size: 14px;
    line-height: 14px;
}
.ii-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    padding: 2rem;
}
.ii-gallery-lightbox.is-open {
    display: flex;
    align-items: center;
    justify-content: center;
}
.ii-gallery-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.92);
}
.ii-gallery-lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(100%, 72rem);
    max-height: calc(100vh - 4rem);
    display: flex;
    align-items: center;
    justify-content: center;
}
.ii-gallery-lightbox-image {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 10rem);
    object-fit: contain;
    border-radius: .75rem;
    box-shadow: 0 25px 70px rgba(0,0,0,.5);
}
.ii-gallery-lightbox-close,
.ii-gallery-lightbox-prev,
.ii-gallery-lightbox-next {
    position: absolute;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: .75rem;
    background: rgba(0,0,0,.65);
    color: #fff;
    cursor: pointer;
}
.ii-gallery-lightbox-close {
    top: 0;
    right: 0;
}
.ii-gallery-lightbox-prev {
    left: 0;
    top: 50%;
    transform: translateY(-50%);
}
.ii-gallery-lightbox-next {
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.ii-gallery-lightbox-close:hover,
.ii-gallery-lightbox-prev:hover,
.ii-gallery-lightbox-next:hover {
    background: #000;
    color: #fbbf24;
}
.ii-gallery-lightbox-caption {
    position: absolute;
    right: 3.5rem;
    bottom: -1rem;
    left: 3.5rem;
    text-align: center;
}
.ii-gallery-lightbox-caption > span {
    color: #fbbf24;
    font-size: .65rem;
    font-weight: 900;
    letter-spacing: .1em;
}
.ii-gallery-lightbox-caption h3 {
    margin: .25rem 0 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 900;
    text-transform: uppercase;
}
.ii-gallery-lightbox-caption p {
    margin: .2rem 0 0;
    color: #a8a29e;
    font-size: .7rem;
}
.ii-gallery-lightbox .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    line-height: 18px;
}
html.ii-gallery-lightbox-open {
    overflow: hidden;
}
@media(max-width:1023px) {
    .ii-gallery-header {
        flex-direction: column;
        align-items: stretch;
    }
    .ii-gallery-actions {
        align-items: flex-start;
    }
    .ii-gallery-filters {
        justify-content: flex-start;
    }
    .ii-gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media(max-width:640px) {
    .ii-photo-gallery { padding: 3rem 0; }
    .ii-gallery-inner { width: min(100% - 1.5rem, 80rem); }
    .ii-gallery-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .ii-gallery-card { height: 20rem; }
    .ii-gallery-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: .25rem;
    }
    .ii-gallery-filter { flex: 0 0 auto; }
    .ii-gallery-lightbox { padding: 1rem; }
    .ii-gallery-lightbox-dialog { max-height: calc(100vh - 2rem); }
    .ii-gallery-lightbox-caption {
        right: 2.75rem;
        bottom: -1.5rem;
        left: 2.75rem;
    }
    .ii-gallery-lightbox-prev { left: .25rem; }
    .ii-gallery-lightbox-next { right: .25rem; }
}
