* {
    box-sizing: border-box;
}

label {
    display: block;
}


body {
    position: relative;
    font-family: sans-serif;
    margin: 0;
    background-color: #e9edef;
    background-image: url('pattern5.png');
    background-repeat: repeat;
}

.overlay {
    background-color: rgba(255, 255, 255, 0.8);
}

.main-text {
    margin-left: auto;
    margin-right: auto;
    max-width: 700px;
    /* background-color:rgba(255,255,255,0.5); */
    /* background: linear-gradient(90deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 10%, rgba(255,255,255,0.8) 90%, rgba(255,255,255,0) 100%);  */
    padding: 1rem 2rem;
    box-sizing: border-box;
}

.gallery-container {
    margin:0 auto;
    padding:0 2rem;
    max-width:1200px;
}

@media screen and (min-width: 900px) {
    article {
        padding: 2rem 8rem;
    }
}

body,
button {
    font-family: "Playfair", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
    font-size: 20px;
    color: #222;
}

input {
    display: block;
    padding: 0.5rem;
    width: 100%;
    max-width: 400px;
}

button {
    font-size: 18px;
    background: #d4dbdd;
    border: 1px solid #ccc;
    /* border:none; */
    padding: 0.5rem;
    margin-right: 16px;
    width: 120px;
    margin-bottom: 10px;

    cursor: pointer;
}

@media (max-width: 500px) {
    button {
        width: 100%;
        margin-right: 0;
    }
}

button:last-child {
    margin-right: 0;
}

button:hover {
    border-color: #333;
}

button:active {
    transform: scale(0.97);
    transition: all 0.1s;
}

input:focus {
    /* border: 1px solid rgb(233, 193, 193); */
}

label {
    margin: 1rem 0;
    text-transform: uppercase;
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Playfair Display", serif;
    margin-top: 4rem;
}

footer {
    padding-top: 6rem;
    padding-bottom: 1rem;
    text-align:center;
}

li {
    padding: 0.25rem 0;
}

#guest_list li {
    padding: 0;
}

/* paints */
canvas {
    width: 100%;
    background: white;
}

#colourInput {
    width: 60px;
    height: 60px;
}

canvas {
    border: 4px solid #565656;
}

@media (max-width: 500px) {
    canvas {
        width: 100%;
        height: 100%;
    }
}

.inline {
    display: inline-block;
    margin-right: 2rem;
    vertical-align: top;
}

.right {
    float: right;
    margin-right: 0;
}

.frame {
    position: relative;
    padding-bottom: 72.5%;
    background: black;
    box-shadow: 0 10px 7px -5px rgba(0, 0, 0, 0.3);
}

.mat {
    position: absolute;
    background: white;
    top: 3.0303%;
    bottom: 3.0303%;
    left: 2.5%;
    right: 2.5%;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5) inset;
}

.art {
    position: absolute;
    top: 16.129%;
    bottom: 16.129%;
    left: 13.158%;
    right: 13.158%;
}

.art img {
    width: 100%;
}

.art:after {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    width: 100%;
    height: 100%;
    box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.5) inset;
}

img {
    background-color: white;
}


.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 70px;
    /* Adjust spacing as needed */
}

.image-grid .frame {
    width: 100%;
    /* Fills the grid cell */
    position: relative;
    /* Needed for image positioning */
    border: 1px solid #ddd;
    /* Adjust border style and color */
    /* padding:1rem;
box-sizing:border-box; */
}

.frame:after {
    content: attr(data-artist);
    padding: 4px 8px;
    position: absolute;
    font-style: italic;
    right: 0;
    top: 100%;
    z-index: 10;
    transition: color 0.3s linear;
}


.marquee {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    box-sizing: border-box;

    font-style: italic;
}

.marquee p {
    display: inline-block;
    width: max-content;
    padding-left: 100%;

    will-change: transform;
    animation: marquee 30s linear infinite;
}

.marquee p:hover {
    animation-play-state: paused;
}

@keyframes marquee {
    0% {
        transform: translateX(0, 0);
    }

    100% {
        transform: translateX(-100%);
    }
}
