/*///// Background Images ///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////*/
* { 
    margin: 0;
    padding: 0;
    box-sizing: border-box; 
}

body {
    display: flex; /* Use flexbox to center the info section */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically */
    min-height: 100vh; /* Ensure the body fills the viewport */
    overflow: hidden; /* Prevent scrollbars */
    position: relative; /* Required for absolute positioning of child elements */
}

.background-container {
    display: grid; /* Keep this as a grid layout for the images */
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); /* Responsive columns */
    min-height: 100vh; /* Adjust height to fill viewport */
    position: absolute; /* Make sure it uses the whole view */
    top: 0; /* Align to the top */
    left: 0; /* Align to the left */
    right: 0; /* Align to the right */
    bottom: 0; /* Align to the bottom */
}

.tiled-image {
    display: flex; 
    align-items: center; 
    justify-content: center; 
    width: 100%; 
    height: 100%; 
    background-color: #222;
}

.tiled-image img {
    width: 100%; 
    height: auto; 
    max-height: 100%; 
    object-fit: contain; 
}

/*///// Info ////////////////////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////////////////////////////*/
.info {
    position: absolute;                                 /* Positioning */
    top: 50%;                                           /* Center vertically */
    left: 50%;                                          /* Center horizontally */
    transform: translate(-50%, -50%) rotate(-10deg);    /* Initial rotation of -10 degrees */
    transform-origin: center;                           /* Adjust rotation origin */
    z-index: 10;                                        /* Keep it above other elements */
    padding: 1.2em;                                     /* Padding inside the circle */
    width: 28em;                                        /* Fixed width */
    height: 28em;                                       /* Fixed height */
    border-radius: 50%;                                 /* Circle shape */
    border: 0.8em solid transparent;                    /* Initial transparent border for JS to control */
    display: flex;                                      /* Use flexbox */
    flex-direction: column;                             /* Stack children */
    justify-content: center;                            /* Center vertically */
    align-items: center;                                /* Center horizontally */
    text-align: center;                                 /* Center text */
    list-style: none;
    background: #e0ddcf;
    box-shadow: 0 1em 2em rgba(0, 0, 0, 0.5);
}
.info:hover { animation: snapToZero 0.21s forwards; }
.info:not(:hover) { animation: revertToMinusTen 0.2s forwards; }
    @keyframes snapToZero {
        0% { transform: translate(-50%, -50%) rotate(-10deg); }                 /* Start at -10 degrees */
        50% { transform: translate(-50%, -50%) rotate(4deg) scale(1.02); }      /* Over-rotate slightly to 5 degrees */
        100% { transform: translate(-50%, -50%) rotate(0deg); }                 /* Snap to 0 degrees */
    }
    @keyframes revertToMinusTen {
        0% { transform: translate(-50%, -50%) rotate(0deg); }       /* Start at 0 degrees */
        50% { transform: translate(-50%, -50%) rotate(-14deg) scale(.99); }    /* Over-rotate slightly to -15 degrees */
        100% { transform: translate(-50%, -50%) rotate(-10deg); }   /* Return to -10 degrees */
    }
.info li {
    color: #2d232e;
    margin: .2em 0;
    font-family: "Chewy", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 1.8em;
    line-height: 1em;
}
.info li.title {
    margin-top: .5em;
    font-size: 3.5em;
    line-height: 1.1em;
}
:root {
    --link-color: #F7C5CC; /* Default link color */
    --link-hover-color: #ffb703; /* Default hover color */
}
.info a {
    color: var(--link-color);
    text-decoration: none;
    transition: .3s;
}
.info a:hover {
    color: var(--link-hover-color);
    font-size: 1.1em;
    line-height: .7em;
}
::selection {
    background-color: #ffb703;
    color: #34145A;
}
::-moz-selection {
    background-color: #ffb703;
    color: #34145A;
}


img {
    width: 100%;      /* Image takes the full width of its container */
    height: auto;     /* Height adjusts to maintain aspect ratio */
    display: block;   /* Avoids spacing issues typically caused by inline images */
}










