/* We only need minimal custom styling now */
.card-img-top img {
    max-width: 200px;
    margin: 0 auto;
}

.card {
    transition: transform 0.2s ease-in-out;
}

.og-grid {
    position: relative;
}

.team-item-holder {
    padding: 2rem;
}


.team-item {
    transition: all 0.3s ease;
}

.team-link {
    display: block;
    overflow: hidden;
    text-decoration: none;
    text-align: center;
}

.team-link h6 {
    text-align: center;
}

.card-img-top {
    transition: transform 0.3s ease;
    aspect-ratio: 1;
    object-fit: cover;
}

.card-img-top:hover img {
    -webkit-transform: scale3d(1.05,1.05,1);
    transform: scale3d(1.05,1.05,1) 
}

.team-link:hover .card-img-top img {
    transform: scale(1.1);
}

.og-expander {
    position: absolute;
    background: #fff;
    top: auto;
    left: 0;
    right: 0;
    margin: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-in-out;
}

.og-expander-inner {
    padding: 3rem;
}

.og-close {
    position: absolute;
    width: 40px;
    height: 40px;
    top: 20px;
    right: 20px;
    cursor: pointer;
    z-index: 1000;
}

.og-close::before,
.og-close::after {
    content: '';
    position: absolute;
    width: 100%;
    top: 50%;
    height: 1px;
    background: #888;
    transform: rotate(45deg);
}

.og-close::after {
    transform: rotate(-45deg);
}

.og-fullimg,
.og-details {
    float: left;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.og-details {
    padding: 0 2rem;
}

.og-fullimg {
    text-align: center;
}

.og-fullimg img {
    width: 100%; /* Adjust to fit the container's width */
    height: auto; /* Maintain aspect ratio initially */
    object-fit: cover; /* Ensures the image covers the square area without distortion */
    aspect-ratio: 1 / 1; /* Forces the image to maintain a square aspect ratio */
}

@media (max-width: 768px) {
    .og-fullimg,
    .og-details {
        width: 100%;
        float: none;
    }
    
    .og-fullimg {
        margin-bottom: 2rem;
    }
} 

@media (min-width: 992px) {
    .col-lg-2-4 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}
