
.judge-thumbnail {
    width: 100%;
    height: 300px !important; /* or any fixed height you prefer */
    object-fit: cover;
    border-radius: 8px;
    display: block;
}


/* Modal styles */
.judge-popup-modal {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.7);
    z-index: 9999;
}
.judge-popup-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.judge-popup-content {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    max-width: 900px;
    width: 90%;
    display: flex;
    gap: 20px;
}
.judge-popup-close {
    position: absolute;
    top: 10px; right: 15px;
    font-size: 24px;
    cursor: pointer;
}
#judge-popup-body {
    display: flex;
    width: 100%;
    gap: 20px;
}
.judge-image-description {
    flex: 1;
}
.judge-image-description img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}
.judge-detail {
    flex: 2;
}


.competition-judges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.judge-item {
    width: 45%;
    box-sizing: border-box;
    background-color: unset;
    transition: 0.3s;
    text-align: center;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
}

.judge-item img {
    transition: 0.3s;
}

.judge-item:hover {
    background-color: #d9d9d9;
}

.judge-item:hover img {
    transform: scale(1.1);
}

.judge-img-wrapper {
    overflow: hidden;
}

.judge-instagram {
    transition: 0.3s;
    text-decoration: unset !important;
}

.judge-instagram:hover {
    color: black !important;
}

@media (max-width: 1024px) {
    .judge-item {
        width: 48%;
    }
}

@media (max-width: 768px) {
    .judge-item {
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .judge-popup-content {
        height: calc(100vh - 50px);
    }

    #judge-popup-body {
        overflow-y: auto;
        margin-top: 30px;
        flex-direction: column;
    }

    #judge-image-description {
        display: flex;
        justify-content: center;
    }

    #judge-image-description img {
        width: fit-content;
        max-height: 300px;
    }
}