#photo-album-container {
	width: 90%;
	margin: auto;
}

/* --------------------------------
	GO BACK BUTTON
---------------------------------- */
#photo-album-container a {
	margin-top: 3rem;
	font-size: 1.3rem;
	text-decoration: none;
	color: #3498DB;
	font-weight: bold;
	display: inline-block; /* needed for transition */
	transition: transform 0.2s ease;
}

#photo-album-container a::before {
	content: "← ";
	font-weight: bold;
}

#photo-album-container a:hover {
	transform: translateX(-5px);
}

/* --------------------------------
	PHOTO GRID
---------------------------------- */
.photo-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); /* makes at least 250px wide cols where 1fr to make sure all cols have equal width */
	gap: 1rem;
	margin: 3rem auto 10rem;
	max-width: 1250px;
}

.individual-photoalbum-title {
	font-weight: bold;
	display: flex;
	align-items: center;
}

.photo-grid img {
	width: 100%;
	cursor: zoom-in;
	border-radius: 5px;
	transition: transform 0.3s ease;
	aspect-ratio: 7 / 6;
	object-fit: cover;
}

.photo-grid img:hover {
	transform: scale(1.05);
}

/* --------------------------------
	FOR IF THERE ARE VIDEOS
---------------------------------- */
.photo-grid iframe {
	width: 100%;
	cursor: pointer;
	border-radius: 5px;
	transition: transform 0.3s ease;
	aspect-ratio: 7 / 6;
	object-fit: cover;
	border: none;
}

/* --------------------------------
	PLAY BUTTON OVERLAY
---------------------------------- */
.thumbnail { /* icon needs for positioning */
	position: relative;
	display: inline-block;
}

.thumbnail img {
	border: 1px solid rgba(0, 0, 0, 0.05); /* very faint border */
	box-shadow: 0 3px 3px rgba(0, 0, 0, 0.08); /* soft shadow */
}

.thumbnail i {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #fff;
	pointer-events: none;
	width: 70px; 	/* making perfect circle */
	height: 70px; 	/* making perfect circle */
	background: linear-gradient(135deg, #3498DB, #5dade2);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	transition: transform 0.3s ease;
}

.thumbnail:hover i { /* make play circle scale slightly bigger when hovered over */
	transform: translate(-50%, -50%) scale(1.2);
}

/* --------------------------------
	POPUP FOR VIDEOS
---------------------------------- */
.video-popup {
	display: none;
	position: fixed;
	top: 0; left: 0;
	width: 100%; height: 100%;
	background: rgba(0, 0, 0, 0.85);
	justify-content: center;
	align-items: center;
	z-index: 1000;
}

.video-popup-content {
	position: relative;
	width: 90%;
	max-width: 900px;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: 5px;
	overflow: hidden;
}

.video-popup iframe {
	width: 100%;
	height: 100%;
	border: none;
}

.video-popup .close {
	position: absolute;
	top: 20px; 
	right: 40px;
	color: white;
	font-size: 3rem;
	font-weight: bold;
	cursor: pointer;
	z-index: 1001; /* ensure above iframe */
}

/* --------------------------------
	ADJUSTING FOR SMALLER SCREENS
---------------------------------- */
@media (max-width: 800px) {
	.video-popup .close {
		top: 6rem;
		right: 2.5rem;
	}
}
