/* SA Image Box Styles */

/* Box Container */
.sa-image-box {
    display: flex;
    gap: 0;
}

/* Image Styles */
.sa-image {
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.sa-image-link {
    display: block;
    position: relative;
}

.sa-image img {
    display: block;
    width: 100%;
    height: auto;
}

/* Content Wrapper */
.sa-image-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

/* Subtitle */
.sa-image-subtitle {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Title */
.sa-image-title {
    margin: 0;
    padding: 0;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
}

.sa-image-title-multi {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sa-image-title-multi span {
    display: inline;
}

.sa-image-title a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Description */
.sa-image-desc {
    margin: 0;
    line-height: inherit;
    font-size: inherit;
    font-weight: inherit;
}

/* Tags */
.sa-image-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 5px 0;
}

.sa-image-tag {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f0f0f0;
    border-radius: 4px;
    font-size: inherit;
    font-weight: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.sa-image-tag:hover {
    background-color: #e0e0e0;
}

/* Button Styles */
.btn-wrapper {
    margin-top: 10px;
}

.sa-image-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    text-decoration: none;
    font-weight: inherit;
    font-size: inherit;
    transition: all 0.3s ease;
    font-family: inherit;
}

.sa-btn-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 100%;
}

.sa-btn-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sa-btn-icon svg {
    width: 20px;
    height: 20px;
    display: block;
}

.sa-btn-text {
    display: inline;
}

/* Button Type: Default */
.sa-image-btn.is-default {
    padding: 12px 24px;
    background-color: #333;
    color: #fff;
    border-radius: 4px;
}

.sa-image-btn.is-default:hover {
    background-color: #000;
}

/* Button Type: Glass */
.sa-image-btn.is-glass {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.sa-image-btn.is-glass .glass-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: inherit;
    pointer-events: none;
    z-index: 0;
}

.sa-image-btn.is-glass .sa-btn-content {
    position: relative;
    z-index: 1;
}

.sa-image-btn.is-glass:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
}

/* Button Type: Link */
.sa-image-btn.sa-link {
    background: none;
    padding: 0;
    color: #333;
    text-decoration: underline;
    border: none;
}

.sa-image-btn.sa-link:hover {
    color: #000;
}

/* Icon Views */
.sa-btn-icon.is-stacked {
    flex-direction: column;
}

.sa-btn-icon.is-framed {
    padding: 8px;
    border-radius: 50%;
}

.sa-btn-icon.is-framed.is-circle {
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.1);
}

.sa-btn-icon.is-framed.is-rounded {
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.1);
}

.sa-btn-icon.is-framed.is-square {
    border-radius: 2px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* =====================================================
   LIGHTBOX ZOOM CONTROLS STYLES
   ===================================================== */

/* Zoom Controls */
.sa-zoom-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 101;
}

.sa-zoom-btn {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    padding: 0;
}

.sa-zoom-btn:hover {
    background: white;
    transform: scale(1.05);
}

.sa-zoom-btn:active {
    transform: scale(0.95);
}

.sa-zoom-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Responsive */
@media (max-width: 768px) {
    .sa-image-box {
        flex-direction: column;
    }

    .sa-zoom-controls {
        bottom: 10px;
        right: 10px;
        gap: 8px;
    }

    .sa-zoom-btn {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }

    .sa-btn-content {
        flex-direction: column;
    }

    .sa-image-tags {
        gap: 8px;
    }

    .sa-image-tag {
        padding: 5px 10px;
        font-size: 11px;
    }
}
