/* --- STIJLEN VOOR DE "DOOR ZETTEN" PAGINA --- */

/* De hero-sectie voor de nieuwste editie */
.featured-issue {
    display: grid;
    /* Op desktop: 50/50. Op tablet/mobiel: automatisch onder elkaar */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    align-items: center;
    max-width: 1200px;
    margin: 4rem auto 0; /* Ruimte boven/onder en centreren */
    padding: 0 2rem;
}

.featured-issue .image-column img {
    width: 100%;
    height: auto;
    max-width: 500px; /* Limiteer de grootte van de afbeelding */
    display: block;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

.featured-issue .content-box {
    padding: 0; /* Geen extra padding nodig */
    box-shadow: none;
    background: none;
}

/* De Archief Sectie */
.archive-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.archive-title {
    text-align: center;
    margin-bottom: 3rem;
    font-family: var(--header-font);
    font-size: 2.5rem;
    color: var(--dark-color);
}

.magazine-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.magazine-card {
    border-radius: 8px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.magazine-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.3);
}

.card-image {
    border-radius: 4px;
    overflow: hidden;
}

.card-image img {
    width: 100%;
    height: auto;
    display: block;
}

.card-content {
    padding: 1rem 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.card-content h3 {
    font-family: var(--header-font);
    font-size: 1.2rem;
    margin-bottom: auto;
    padding-bottom: 1rem;
    text-align: center;
}

.card-buttons {
    display: grid;
    gap: 0.5rem;
    margin-top: 1rem;
}

.btn-grid {
    display: block;
    width: 100%;
    padding: 0.75rem;
    background-color: var(--accent-color);
    color: var(--dark-color);
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.btn-grid:hover {
    background-color: #ffd040;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}

.modal-content {
    position: relative;
    width: 95%;
    height: 90%;
    background-color: #fff;
    border-radius: 5px;
    overflow: hidden;
}

#fullScreen {
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 40px; /* vaste breedte */
  height: 40px; /* vaste hoogte */
  background-color: #febf11;
  color: black;
  border: none;
  border-radius: 5px;
  padding: 0; /* padding verwijderen om centreren niet te verstoren */
  cursor: pointer;
  font-weight: bold;
  z-index: 10000;

  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
    background-color: white;
    color: black;
}

/* --- RESPONSIVE AANPASSINGEN VOOR TIJDSCHRIFT GRID --- */

@media (max-width: 1024px) {
    .magazine-grid {
        /* Terug naar 2 kolommen op tablets */
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 600px) {
    .magazine-grid {
        /* 1 kolom op mobiele telefoons */
        grid-template-columns: 2fr;
    }
}