:root {
    --sts-columns: 3;
}

/* === GRID LAYOUT === */
.sts-team-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 10px;
}

.sts-team-member {
    width: calc(100% / var(--sts-columns) - 20px);
    cursor: pointer;
    overflow: hidden;
    border-radius: 10px;
    transition: transform 0.3s ease;
    position: relative;
    min-width: 250px;
    box-sizing: border-box;
}

.sts-team-member:hover {
    transform: scale(1.05);
    z-index: 2;
}

.sts-member-photo {
    width: 100%;
    padding-top: 100%;
    background-size: cover;
    background-position: center center;
    position: relative;
}

/* === OVERLAY TEXT === */
.sts-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.65);
    color: #fff;
    padding: 15px;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    width: 90%;
    border-radius: 8px;
}

.sts-team-member:hover .sts-overlay {
    opacity: 1;
}

.sts-overlay h4 {
    margin: 0 0 5px 0;
    font-size: 1.4rem;
}
.sts-overlay strong {
    display: block;
    font-size: 1.1rem;
    margin-bottom: 5px;
}
.sts-overlay p {
    font-size: 1rem;
    margin: 0;
}

/* === MODAL POPUP === */
#sts-popup-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.75);
    z-index: 9998;
}

.sts-popup-content {
    display: none;
    position: fixed;
    top: -100%;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 850px;
    background: #fff;
    z-index: 9999;
    border-radius: 10px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    overflow: hidden;
    padding: 0;
}

.sts-popup-content.show {
    top: 5%;
}

.sts-modal-inner {
    display: flex;
    flex-direction: row;
    gap: 0;
    max-height: 80vh;
    overflow-y: auto;
}

.sts-modal-inner img {
    width: 40%;
    object-fit: cover;
    border-radius: 10px 0 0 10px;
    max-height: 100%;
}

.sts-full-content {
    padding: 20px;
    width: 60%;
    font-size: 1rem;
    line-height: 1.6;
    overflow-y: auto;
}

.sts-full-content h2 {
    margin-top: 0;
}

.sts-close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 28px;
    cursor: pointer;
    z-index: 10001;
    font-weight: bold;
    color: #333;
}

/* === RESPONSIVE BREAKPOINTS === */
@media (max-width: 1024px) {
    :root {
        --sts-columns: 2;
    }
    .sts-overlay h4 { font-size: 1.3rem; }
    .sts-overlay strong { font-size: 1rem; }
    .sts-overlay p { font-size: 0.9rem; }
}

@media (max-width: 768px) {
    :root {
        --sts-columns: 2;
    }
    .sts-modal-inner {
        flex-direction: column;
    }
    .sts-modal-inner img {
        width: 100%;
        height: auto;
        border-radius: 10px 10px 0 0;
    }
    .sts-full-content {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 480px) {
    :root {
        --sts-columns: 1;
    }
    .sts-overlay h4 { font-size: 1.2rem; }
    .sts-overlay strong { font-size: 1rem; }
    .sts-overlay p { font-size: 0.85rem; }
}
