.az-sg-wrap {
    width: 100%;
}

.az-sg-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.az-sg-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
    margin-bottom: 8px;
}

.az-sg-heading {
    margin: 0 0 8px;
    line-height: 1.15;
}

.az-sg-description {
    margin: 0;
    line-height: 1.5;
    max-width: 640px;
}

.az-sg-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.az-sg-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.az-sg-arrow[aria-disabled="true"] {
    opacity: 0.35;
    cursor: default;
}

.az-sg-arrow:focus-visible,
.az-sg-view-all:focus-visible,
.az-sg-card[role="button"]:focus-visible,
.az-sg-lightbox-arrow:focus-visible,
.az-sg-lightbox-close:focus-visible,
.az-sg-lightbox-thumb:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.az-sg-view-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-weight: 600;
    cursor: pointer;
    padding: 0 0 0 8px;
    white-space: nowrap;
}

.az-sg-viewport {
    overflow: hidden;
    width: 100%;
}

.az-sg-track {
    display: flex;
    transition: transform 0.35s ease;
}

.az-sg-card {
    position: relative;
    overflow: hidden;
    border: none;
    padding: 0;
    cursor: default;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.az-sg-card[role="button"] {
    cursor: pointer;
}

.az-sg-card.az-sg-has-photo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.az-sg-card.az-sg-has-photo .az-sg-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 32px 16px 14px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0));
    text-align: left;
    font-size: 14px;
    font-weight: 600;
}

.az-sg-placeholder {
    flex-direction: column;
    gap: 12px;
}

.az-sg-placeholder-icon {
    opacity: 0.9;
}

.az-sg-placeholder .az-sg-caption {
    font-size: 14px;
}

@media (max-width: 991px) {
    .az-sg-card {
        flex-basis: calc(50% - 12px) !important;
    }
}

@media (max-width: 600px) {
    .az-sg-header {
        align-items: flex-start;
    }
    .az-sg-card {
        flex-basis: 100% !important;
    }
}

/* Lightbox */
.az-sg-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: none;
    align-items: center;
    justify-content: center;
}

.az-sg-lightbox.is-open {
    display: flex;
}

.az-sg-lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.88);
}

.az-sg-lightbox-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 70px;
    box-sizing: border-box;
}

.az-sg-lightbox-main {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 0;
}

.az-sg-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
}

.az-sg-lightbox-counter {
    color: #ffffff;
    opacity: 0.8;
    font-size: 13px;
    margin-top: 14px;
}

.az-sg-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.az-sg-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
}

.az-sg-lightbox-prev {
    left: 16px;
}

.az-sg-lightbox-next {
    right: 16px;
}

.az-sg-lightbox-arrow[aria-disabled="true"] {
    opacity: 0.3;
    cursor: default;
}

.az-sg-lightbox-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 16px;
    max-width: 100%;
    overflow-x: auto;
    padding: 4px;
}

.az-sg-lightbox-thumb {
    flex: 0 0 64px;
    height: 48px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    background: none;
}

.az-sg-lightbox-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.az-sg-lightbox-thumb.is-active {
    border-color: #ffffff;
}

body.az-sg-lightbox-open {
    overflow: hidden;
}
