/* foto/CSS/img_css.css */
.wrapper {
    width: 100%;
    max-width: 1600px;
    margin: 20px auto;
    background-color: #d6c5af;
    padding: 20px 10px 20px 20px;
    box-shadow: 0 0 5px rgba(0, 0, 0, .3);
    overflow: hidden;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Ensure no more than 4 items per row */
    gap: 10px;
    justify-content: center; /* Center the items */
    background-color: #f5f0ec;
}

.item {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #fff;
    text-align: center;
    box-shadow: 0 0 5px rgba(0, 0, 0, .3);
    margin: 5px;
}

.description {
    background-color: #fff;
    width: 100%;
    height: 35px;
    text-align: center;
    cursor: pointer;
}

.description a {
    color: #3300cc;
}

.gallery img {
    width: 100%;
    height: 250px;
    object-fit: scale-down;
    padding: 10px;
    margin: auto;
    display: block;
}

.gallery img.full {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100vw;
    height: 100vh;
    background: #fff;
    object-fit: scale-down;
}

.front {
    transition: all 0.7s;
}

.front:hover {
    box-shadow: 0 0 12px #000;
}


table {
    width: 90%;
    background-color: #d0d8d8;
    margin-left: auto;
    margin-right: auto;
    border: 4px solid #990000;
}

td {
    padding: 10px;
    border: 2px solid #660066;
}

td a {
    color: #333;
}

td a:hover {
    color: #663300;
}

.tdImage {
    width: 73%;
}

.tdInfo {
    width: 25%;
    /*font-size: 24px;*/
    padding-left: 5px;
    color: #330099;
    text-align: center;
    vertical-align: top;
    /*display: flex;*/
    justify-content: space-between;
     border: none; /* Ensure no border around tdInfo */
}

.tdInfoText {
    font-size: 1.4em;
    padding-left: 5px;
    color: #000000;
    text-align: left;
    vertical-align: top;
}

.tdAlbumText {
    font-size: 1.8em;
    color: #555;
    text-align: center;
}

.btnLeft,
.btnRight {
    /*font-size: 1.2em;*/
    text-decoration: none;
    border: 1px solid #333333;
    background-color: #d4d4b0;
    color: #663300;
    padding: 3px 5px;
    border-radius: 12px;
    cursor: pointer;
}
.btnLeft {
    float: left;
}

.btnRight {
    float: right;
}
.btnBtnRight {
    float: right;
}
.btnCenter {
    text-decoration: none;
    text-align: center;
    background-color: #d4d4b0;
    color: #cc0000;
    padding: 10px 20px;
    border-radius: 20px;
    
    /*border: none;  Remove border for exit button */
}
/*.navigation a {
    display: inline-block;
    margin: 10px;
    text-decoration: none;
}*/

/*.navigation img {
    width: 50px;  Adjust size as needed 
    height: 50px;  Adjust size as needed 
}*/
.btnLeft:hover {
/*     color: #ffcc00; */
     background-color: #6666ff;
}
.btnRight:hover {
/*     color: #ffcc00; */
     background-color: #6666ff;
}
.imageBig {
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
}

button:hover {
    color: #ffcc00;
    background-color: #002ead;
    transition: 0.7s;
}

/* Responsive adjustments */
@media screen and (max-width: 1200px) {
    .gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
}

@media screen and (max-width: 992px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 768px) {
    .wrapper {
        width: 100%;
        margin: 10px auto;
        padding: 10px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .btnLeft,
    .btnRight,
    .btnCenter {
        width: 100%;
        margin: 10px 0;
        float: left;
    }

    .btnLeft, .btnRight {
        width: 48%; /* Adjust width to prevent overlay */
        font-size: 1.0em;
    }
    .tdInfoText {
    font-size: 1.0em;
    padding-left: 2px;
    color: #000000;
    text-align: left;
    vertical-align: top;
}
.tdAlbumText {
    font-size: 16px;
    color: #555;
    text-align: center;
}

}
