/* Contact information + Upcoming events */

.upcoming-events {
    grid-row: 1/2;
    height: 100%;
}

.contact-info {
    grid-row: 2/3;
}

.contact-info>ul,
.upcoming-events>ul {
    list-style-type: none;
    padding-left: 0;
}

.contact-info i,
.upcoming-events i {
    color: var(--color-primary);
    margin-right: 0.5rem;
}

.contact-info a {
    color: #000;
    text-decoration: none;
}

/* Project list */

.projects {
    grid-row: 1/3;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    /* Ensures 2 cards fit side by side */
    gap: 10px;
    margin-top: 10px;
    overflow-y: auto;
    height: 15rem;
}

.project-grid>a {
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #fff;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 8px;
    text-decoration: none;
    font-weight: bold;
    color: #000;
}

.project-grid>a:hover {
    transform: translateY(-3px);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Cosplay pictures */

.cosplay-pictures {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    box-sizing: border-box;
    padding: 1rem;
    grid-row: 1/2;
}

.cosplay-picture-grid {
    display: grid;
    grid-template-columns: 18% 18% 18% 18% 18%;
    gap: 2.5%;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
    overflow-y: scroll;
    height: 20rem;
}


.cosplay-picture-grid>img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* Latest video */

.latest-video > div > iframe {
    position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.latest-video > div {
    position: relative;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
}