/* Gallery Styles */
.custom-photo-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin: -10px; /* Adjust as needed */
}

.custom-photo-gallery img {
    width: calc(33.333% - 20px); /* Adjust as needed */
    margin: 10px; /* Adjust as needed */
    max-width: 100%;
    height: auto;
    transition: transform 0.5s ease-in-out; /* Slow transition for a flip effect */
    border-radius: 8px; /* Rounded edges */
}

.custom-photo-gallery img:hover {
    transform: scale(2.1) scaleX(-1); /* Scale up and flip horizontally on hover (adjust as needed) */
}

.custom-photo-gallery {
    display: flex;
    flex-wrap: wrap;
}

.custom-photo-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px; /* Adjust as needed */
    margin-left: -15px; /* Adjust as needed */
}

.custom-photo {
    width: 20%; /* Adjust as needed for a 5-column grid */
    box-sizing: border-box;
    padding: 15px; /* Adjust as needed */
}

.custom-photo img {
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 10px;
    border-radius: 8px; /* Rounded edges */
}

.photo-name {
    color: #ffffff; /* Change the color to your desired color code */
    text-align: center;
    font-size: 20px;
    margin-top: 5px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
    max-width: 100%;
    white-space: normal;
    
    /* Text-related properties */
    font-family: 'Your Font', sans-serif; /* Change to your preferred font */
    font-weight: bold; /* Adjust font weight as needed */
    line-height: 1.5; /* Adjust line height as needed */
    letter-spacing: 1px; /* Adjust letter spacing as needed */
    text-transform: uppercase; /* Change to lowercase or capitalize if needed */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow */

    /* Other text styling */
    text-overflow: ellipsis; /* Add ellipsis for overflow text */
    overflow: hidden; /* Hide overflowing text */
    text-indent: 10px; /* Adjust text indent as needed */
    text-align-last: center; /* Align last line of text to center */
    word-spacing: 2px; /* Adjust word spacing as needed */
}

/* Media query for screens with a maximum width of 767 pixels (typical mobile devices) */
@media (max-width: 767px) {
    .custom-photo {
        width: 100%; /* Full width for smaller screens */
    }
}

.enlarged-image {
    max-width: 80%;
    max-height: 80%;
    margin: auto;
    display: block;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
}
