.title{
    position: relative;
    max-width: 30rem;
    margin: 0 auto; 
    display: flex;
    aspect-ratio: 16/5;

}

.title img{
    flex: 1 0 100%;
    object-fit: contain;
    max-width: 100%;
    max-height: 100%
}

#Members{
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(41, 45, 101, 0.55);
    margin-left: 1rem;
    margin-right: 1rem;
    backdrop-filter: blur(10px);

}

#Members-mobile{
    display: none;
    padding: 2rem;
    border-radius: 1rem;
    background: rgba(41, 45, 101, 0.55);
    margin-left: 1rem;
    margin-right: 1rem;
    backdrop-filter: blur(10px);
}



.photo-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    gap: 20px;
    margin-top: 20px;
}

.pic-member {
    position: relative; 
    width: 100%; 
    aspect-ratio: 1 / 1; 
    overflow: hidden; 
    border: 2px solid #d3bc8f;
    border-radius: 12px;
}

/*tu i hope udało mi się nadać cechy by wypełniało całą ramkę XD*/
.pic-member img {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    object-position: center;
    display: block;
    transition: transform 0.3s ease; 
}

@media (max-width: 768px) {
    #Members-mobile{
        display: block;
    }
    #Members{
        display: none;
    }
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .pic-member:active .member-overlay {
    opacity: 1;
    -webkit-flow-into: touch;
}
}

@media (max-width: 480px) {
    .photo-gallery {
        grid-template-columns: 1fr;
    }
}

/* Zabawa członkiem XD */


.member-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(41, 45, 101, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0; 
    transition: opacity 0.3s ease;
    text-align: center;
    
}

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

.pic-member:hover img {
    transform: scale(1.1);
}

.member-info {
    color: #ffebb4;
    padding: 10px;
    font-family: "Noto Serif", serif;
}

.member-nick {
    font-size: 1.1rem;
    font-family: "Noto Serif", serif;
    font-weight: bold;
    margin: 0;
    text-transform: uppercase;
}

.member-photo {
    font-size: 0.75rem;
    font-family: "Noto Serif", serif;
    margin-top: 5px;
    color: #fff;
}

.member-ig {
    font-size: 1rem;
    font-family: "Noto Serif", serif;
    margin-top: 5px;
    color: #fefdf1;
    text-decoration: none;
}

/* Magiczny link przeklęty w kafelku zdjęcia zaklęty */
.pic-member a {
    display: block;
    width: 100%;
    height: 100%;
}

.pic {
    background: rgba(255,255,255,0.08);
    border-radius: 16px;
    padding: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.pic img {
    width: 100%;
    max-width: 220px;
    border-radius: 12px;
}
