/* Advanced Bento Grid - 62e90c71 */

.abg-62e90c71-grid {
    display: grid;
    width: 100%;
}

.abg-62e90c71-box {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 0;
}

.abg-62e90c71-inner {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    position: relative;
    z-index: 1;
}

.abg-62e90c71-title {
    margin: 0 0 10px 0;
    font-size: 1.3em;
    font-weight: 700;
    line-height: 1.3;
}

.abg-62e90c71-content {
    flex: 1;
}

.abg-62e90c71-content p:last-child {
    margin-bottom: 0;
}

.abg-62e90c71-img {
    width: 100%;
    height: 100%;
    display: block;
}

.abg-62e90c71-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.abg-62e90c71-template-placeholder {
    opacity: 0.6;
    font-style: italic;
}

/* Link Wrap */
.abg-62e90c71-link-wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.abg-62e90c71-link-wrap:hover,
.abg-62e90c71-link-wrap:focus {
    color: inherit;
    text-decoration: none;
}

/* Hover Effects */
.abg-62e90c71-hover-scale-up:hover {
    transform: scale(1.04);
    z-index: 2;
}

.abg-62e90c71-hover-lift:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
    z-index: 2;
}

.abg-62e90c71-hover-bg-shift {
    /* bg color handled via selectors in controls */
}

/* Stack on Mobile */
@media (max-width: 767px) {
    .abg-62e90c71-stack-mobile {
        grid-template-columns: 1fr !important;
    }
    .abg-62e90c71-stack-mobile .abg-62e90c71-box {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }
}

/* Modal Overlay */
.abg-62e90c71-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    cursor: pointer;
}

.abg-62e90c71-modal-overlay.abg-62e90c71-modal-active {
    opacity: 1;
    visibility: visible;
}

.abg-62e90c71-modal-dialog {
    position: relative;
    width: 90%;
    max-height: 85vh;
    overflow-y: auto;
    padding: 40px;
    cursor: default;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.abg-62e90c71-modal-active .abg-62e90c71-modal-dialog {
    transform: scale(1) translateY(0);
}

.abg-62e90c71-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(255,255,255,0.15);
    color: inherit;
    font-size: 22px;
    line-height: 36px;
    text-align: center;
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease;
    z-index: 2;
    padding: 0;
}

.abg-62e90c71-modal-close:hover {
    background: rgba(255,255,255,0.3);
}

.abg-62e90c71-modal-title {
    margin: 0 0 16px 0;
    font-size: 1.6em;
    font-weight: 700;
    line-height: 1.3;
}

.abg-62e90c71-modal-body {
    font-size: 1em;
    line-height: 1.6;
}

.abg-62e90c71-modal-body img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

.abg-62e90c71-modal-body p:last-child {
    margin-bottom: 0;
}
