@charset "utf-8";
body {
	background-image: url(../img/border.jpg);
	background-repeat: no-repeat;
	background-size: cover; 
	font-family: "Times New Roman", Times, serif;
	font-size: 18px;
	color: #333;
	border: thick groove #000;
	margin: 0;
	padding: 0;
}
#wrapper {
	font-family: "Times New Roman", Times, serif;
	font-size: 16px;
	background-color: #69C;
	min-height: 100vh;
	max-width: 640px;
	width: 100%;
	margin: 35px auto;
	border: 20px solid #000;
	box-sizing: border-box;
}
#timer {
	font-family: "Courier New", Courier, monospace;
	font-size: 24px;
	color: #000;
	text-align: center;
	font-style: oblique;
	font-weight: bolder;
	padding: 10px;
}
#wrapper p {
	text-align: center;
	padding: 0 15px;
}
#wrapper h1 {
	margin-top: 49px;
	margin-bottom: 20px;
	margin-left: 0;
	margin-right: 0;
	padding: 0 20px;
	font-family: "Times New Roman", Times, serif;
	font-size: clamp(24px, 5vw, 36px); 
	text-align: center;
	color: #000;
}
#wrapper h2 {
	font-family: "Times New Roman", Times, serif;
	font-size: clamp(18px, 4vw, 24px);
	margin-top: 10px;
	margin-bottom: 25px;
	margin-left: 0;
	margin-right: 0;
	padding: 0 20px;
	text-align: center;
}
#wrapper h3 {
	font-family: "Times New Roman", Times, serif;
	font-size: clamp(16px, 4vw, 24px);
	text-align: center;
	margin-left: 0;
	margin-right: 0;
	padding: 0 20px;
}
#dad {
	padding: 10px;
	max-width: 100%;
	height: auto;
	display: block;
	margin: 0 auto;
}
.copyright {
	margin-top: 60px;
	padding-bottom: 30px;
	font-size: 14px;
	color: #555;
}
.gallery-link-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
}
.btn-gallery {
    display: inline-block;
    padding: 12px 32px;
    font-family: "Times New Roman", Times, serif;
    font-size: 18px;
    font-weight: bold;
    color: #FFF;
    background-color: #000;
    text-decoration: none;
    border: 2px solid #000;
    border-radius: 4px;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-gallery:hover, .btn-gallery:active {
    background-color: transparent;
    color: #000;
}
.photo-grid {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 10px 20px;
}
@media (min-width: 600px) {
    .photo-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}
.photo-item {
    background: rgba(255, 255, 255, 0.5); 
    padding: 15px;
    border: 1px solid #000;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}
.photo-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    object-position: center;
    display: block;
    margin: 0 auto;
    border: 1px solid #ccc;
}
@media (max-width: 600px) {
    .photo-item img {
        height: 300px;
    }
}
.photo-desc {
    font-family: "Times New Roman", Times, serif;
    font-size: 16px;
    font-style: italic;
    color: #000;
    margin-top: 12px;
    text-align: center;
}
.zoom-img {
    cursor: zoom-in;
    transition: transform 0.2s ease;
}
.zoom-img:hover {
    transform: scale(1.02);
}
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}
.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 85vh;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
    object-fit: contain;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 10000;
}
.modal-close:hover {
    color: #bbb;
}
@media (max-width: 600px) {
    .modal-close {
        top: 15px;
        right: 20px;
        font-size: 45px;
    }
}