/* Grid Layout */
.guest-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Guest Card */
.guest-item {
    border: 1px solid #eee;
    /* padding: 20px; */
    text-align: center;
    /* background: #fff; */
    /* border-radius: 6px; */
    transition: box-shadow 0.3s ease;
}

.guest-thumb img {
    width: 100%;
    height: auto;
    cursor: pointer;
    /* border-radius: 4px; */
    height: 397px;
    object-fit: cover;
}

.guest-desc-container {
    background: #fff;
    padding: 16px;
    border-bottom: 4px solid #3A7C22;
    width: 90%;
    position: relative;
    margin: -17px auto 0;
    z-index: 99;
}

span.guest-title {
    display: block;
    text-align: left;
}
.guest-title a {
    text-decoration: none;
    color: #000;
    font-size: 28px;
    font-family: 'DM SERIF TEXT';
    font-weight: 400;
}

.guest-title a:hover {
    color: #555;
}

.guest-team {
    margin-top: 8px;
    font-size: 14px;
    color: #666;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.guest-team .team-name, .position {
    text-align: left;
    color: #FF7C00;
    font-size: 15px;
    font-weight: 600;
    text-transform: uppercase;
    line-height: 17px;
    font-family: Archivo;
}
.guest-team .team_name_position {
    display: flex;
    flex-direction: column;
}
/* Popup Overlay */
.guest-popup {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    overflow-y: auto;
}

/* Popup Box */
.popup-content {
    background: #fff;
    margin: 5% auto;
    padding: 40px 30px 30px;
    width: 80%;
    max-width: 1079px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    gap: 20px;
}

.popup-content img,
.popup-content .popup-left-side {
    width: 100%;
    height: auto;
}

.popup-image {
    display: inline-block;
    text-align: center;
}

.popup-content img {
    max-width: 550px;
}

 

.popup-content h2 {
    font-size: 44px;
    font-family: 'DM Serif Text';
    font-weight: 400;
}
.popup-title-positon {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 15px;
}
.popup-title-positon p {
    margin: 0;
    color: #FF7C00;
    font-size: 13px;
    font-family: 'Archivo';
}
.popup-description {
    font-size: 18px;
    line-height: 24px;
    color: #000000;
    font-family: 'Archivo';
    /* margin-bottom: 15px; */
}
.popup-description p{
     margin: 0 0 10px !important;
}
.close-popup {
    position: absolute;
    top: 2px;
    right: 20px;
    font-size: 62px;
    cursor: pointer;
    color: #333;
    line-height: 1;
    font-weight: 400;
    transition: color 0.2s;
    font-family: 'DM Serif Text';
}
.close-popup:hover {
    color: #000;
}

/* Visit Link Button */
.popup-btn {
    display: inline-block;
    color: #3A7C22;
    font-size: 18px;
    transition: background 0.2s;
}


/* Pagination */
.guest-pagination {
    text-align: center;
    margin-top: 40px;
}

.guest-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    color: #000;
    text-decoration: none;
    border-radius: 4px;
}

.guest-pagination .page-numbers.current {
    background: #000;
    color: #fff;
    border-color: #000;
}

.guest-pagination .page-numbers:hover {
    background: #f0f0f0;
}

/* Responsive */
@media (max-width: 992px) {

    .guest-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .popup-content{
      flex-direction: column;
    }

   .popup-content img, 
   .popup-content .popup-left-side {
      width: 100%;
       
   }

}

@media (max-width: 600px) {
    .guest-grid {
        grid-template-columns: 1fr;
    }

    .popup-content {
        width: 92%;
        padding: 30px 20px 20px;
    }
    .popup-content {
    width: 92%;
    padding: 30px 20px 20px;
    width: 100%;
    /* height: 100%; */
    margin: 0;
    min-height: 100%;
    max-height: unset;
 }
  .popup-description p {
    margin: 0 0 10px !important;
    font-size: 14px;
  }
}