@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@300;400;600&display=swap');

body {
    font-family: 'Raleway', sans-serif;
    margin: 0;
    padding: 40px 100px;
    color: #6c6c6c;
    background: #fff;
}

h1 {
    font-weight: 400;
    margin: 60px 0 30px;
}



/* ===== Gallery ===== */

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px,1fr));
    gap: 40px;
}

.thumb {
    cursor: pointer;
    text-align: center;
}

.thumb img {
    width: 100%;
    display: block;
    transition: transform .25s ease;
}

.thumb:hover img {
    transform: scale(1.05);
}

.caption {
    margin-top: 12px;
    font-size: 0.9em;
    color: #aaa;
}

/* ===== Video thumb ===== */

.video-thumb {
    position: relative;
	cursor: pointer;
}

.video-thumb video {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    pointer-events: none;
}

.play-icon {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 3rem;
	color: rgba(255,255,255,0.74);
	transform: translateY(-0.5em);
	/*background-color: aqua;*/
	}

.thumb.video {
    position: relative;
}

.thumb.video .play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: rgba(255,255,255,0.85);
    pointer-events: none;
}


/* ===== Lightbox ===== */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 80vh;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
}

.lightbox video {
    max-width: 90vw;
    max-height: 80vh;
    width: auto;
    height: auto;
    display: block;
    margin: 0 auto;
    background: #000;
}


.lightbox-caption {
    margin-top: 15px;
    color: #ccc;
    text-align: center;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 2rem;
    color: #ccc;
    cursor: pointer;
}

.lightbox-close:hover {
    color: #fff;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 3rem;
    color: rgba(200,200,200,1);
    cursor: pointer;
    user-select: none;
    padding: 20px;
    z-index: 10000;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #fff;
}
