/* General Layout */
.about {
    text-align: center;
    padding: 20px;
}
.pg-name {
    text-align: center; /* Ensures text is centered */
    display: block; /* Makes sure it behaves as a block element */
    width: 100%; /* Ensures full width for centering */
    margin: 0 auto; /* Centers it horizontally */
    padding-bottom: 10px; /* Adjust spacing from the top */
}


/* Default: Items in one row (for larger screens) */
.profile-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Makes them in one row */
    gap: 15px; /* Adds spacing between items */
    justify-items: center;
    width: 100%; /* Ensures it takes full width */
    margin: auto; /* Centers it */
    padding: 20px; /* Adds spacing */
}

/* When screen width is 600px or smaller, switch to a 2x2 grid */
@media (max-width: 600px) {
    .profile-section {
        grid-template-columns: 1fr 1fr; /* 2 columns */
        grid-template-rows: auto auto; /* Ensures 2 rows */
        gap: 10px; /* Reduce gap slightly */
    }
}






/* Member Card Styling */
.member {
    position: relative;
    width: 90%;  /* Make the width responsive, based on the screen size */
    height: auto;
    max-width: 250px; /* Set a max-width to ensure members don't get too large */
    cursor: pointer;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* Flexibility based on screen width */
    width: 100%;
}

/* Image Container */
.image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 15px;
}

/* Member Image */
.member-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease-in-out;
}

/* Hover Effect on Image */
.member:hover .member-img {
    transform: scale(1.1);
}

/* Overlay Information */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border-radius: 15px;
}
.member {
    width: 100%;
    max-width: 250px; /* Controls member size */
    margin: auto; /* Ensures they are centered inside the grid */
}

.member:hover .overlay {
    opacity: 1;
}

/* Member Name & Role */
.overlay h3 {
    font-size: 1.5rem;
    margin: 10px 0;
}

.overlay p {
    font-size: 1rem;
    font-weight: 300;
}

/* Learn More Button */
.about-button {
    padding: 10px 20px;
    background-color: #ff6a3d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 20px;
}

.about-button:hover {
    background-color: #e63e00;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.modal-content {
    background-color: white;
    border-radius: 10px;
    padding: 30px;
    max-width: 600px;
    width: 100%;
    position: relative;
}

.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Default: Items in one row (for larger screens) */
.profile-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* Keeps all items in one row */
    gap: 15px; /* Adds spacing between items */
    justify-items: center;
}

/* When screen width is 600px or smaller, switch to a 2x2 grid */
@media (max-width: 600px) {
    .profile-section {
        grid-template-columns: 1fr 1fr; /* 2 columns */
        grid-template-rows: auto auto; /* Ensures 2 rows */
    }
}


.merch-blurb {
    width: 100%;
    max-width: 100%;
    display: flex;
    justify-content: center;
    margin: 0; /* Remove any margin */
    padding: 70; /* Remove any padding */
    position: relative; /* Adjust positioning if needed */
}

/* If you want to ensure the blurb starts at the very top of the viewport */
.merch-blurb img {
    width: 120%;
    height: auto;
    object-fit: cover;
    border-radius: 5px;
    clip-path: inset(0px 0px 10% 0px); /* Crops bottom slightly */
    display: block;
}
