﻿/*body {
    font-family: Arial, sans-serif;
    max-width: 100%;
    margin: auto;
    /*padding: 20px;*//*
}

h1 {
    color: #0B3D2E;
}*/

*/

/* --------------------------
   Galerieübersicht
-------------------------- */

.gallery-overview {

    display: grid;

    grid-template-columns:
    repeat(auto-fill,minmax(280px,1fr));

    gap: 20px;
    width:100%;
}

/*.gallery-item {
	box-shadow: 0 4px 12px rgba(0,0,0,.15);
}*/

.album-card {

    text-decoration: none;
    color: inherit;

    background: #f8faf8;

    border: 1px solid #d9e6d9;

    border-radius: 6px;

    overflow: hidden;

    transition: .2s;
}

.album-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.album-card img {

    width: 100%;

    height: 180px;

    object-fit: cover;
}

.album-info {

    padding: 12px;
}

.album-title {

    color: #0B3D2E;

    font-weight: bold;

    margin-bottom: 5px;
}

.album-count {

    color: #666;
}

/* --------------------------
   Einzelne Galerie
-------------------------- */

.gallery-grid {

    display: grid;

    grid-template-columns:
    repeat(auto-fill,minmax(220px,1fr));

    gap: 15px;
}

.gallery-grid img {

    width: 100%;

    height: 180px;

    object-fit: cover;

    border-radius: 6px;

    transition: .2s;
    
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
}

.gallery-grid img:hover {

    transform: scale(1.03);
}

/* --------------------------
   Lightbox
-------------------------- */

.lightbox {

    display: none;

    position: fixed;

    left: 0;
    top: 0;

    width: 100%;
    height: 100%;

    background: rgba(0,0,0,.9);

    z-index: 9999;

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

.lightbox.active {

    display: flex;
}

.lightbox img {

    max-width: 90%;
    max-height: 85%;

    border-radius: 8px;
}

.lightbox-close {

    position: absolute;

    top: 20px;
    right: 25px;

    color: white;

    cursor: pointer;

    font-size: 42px;

    user-select: none;
}

.lightbox-prev,
.lightbox-next {

    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    color: white;

    cursor: pointer;

    font-size: 60px;

    user-select: none;

    padding: 20px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover {

    color: #7fb57f;
}

/*ALBUM*/
/* Layout für die Übersicht */
.gallery-overview {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    padding: 20px;
}

/* Die Kachel-Links */
.album-link {
    display: block;
    transition: transform 0.2s ease;
}
.album-link:hover {
    transform: scale(1.03); /* Leichter Zoom-Effekt beim Drüberfahren */
}

/* Die Kachel selbst */
.album-card {
    border: 1px solid #ccc;
    border-radius: 8px;
    overflow: hidden;
    width: 250px;
    background: #fff;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

/* Box für das Vorschaubild, um es einheitlich zu beschneiden */
.album-preview-box {
    width: 100%;
    height: 180px;
    overflow: hidden;
}

.album-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Schneidet das Bild quadratisch/passend zu ohne es zu verzerren */
}

.album-info {
    padding: 15px;
    text-align: center;
}

.album-title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}
