* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* کانتینر اصلی گالری */
.gallery-container {
    display: flex;
    flex-direction: column; /* در موبایل ستونی */
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

/* آیتم‌های گالری */
.gallery-item {
    background: rgb(7, 42, 45);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 2px solid transparent;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    border-color: rgb(45, 38, 7); /* رنگ حاشیه جذاب هنگام هاور */
}

/* کادر عکس */
.image-wrapper {
    width: 100%;
    height: 300px; /* ارتفاع ثابت برای نظم */
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* عکس کامل در کادر جا بشه */
    transition: transform 0.5s ease;
    display: block;
}

.image-wrapper:hover .gallery-img {
    transform: scale(1.05); /* زوم ملایم روی عکس */
}

/* کپشن و دکمه */
.caption {
    padding: 20px;
    text-align: center;
}

.caption h3 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.caption p {
    color: #7f8c8d;
    font-size: 0.95rem;
    margin-bottom: 15px;
}

.download-btn {
    background-color: #000;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 25px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.download-btn:hover {
    background-color: #fff;
	color: #000;
}

/* لایت‌باکس (نمایش بزرگ عکس) */
	.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox-content {
	padding-top: 25px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
    animation: zoomIn 0.3s ease;
}

#caption-text {
    color: #fff;
    margin-top: 15px;
    font-size: 1.2rem;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s;
}

.close-btn:hover {
    color: #f1c40f;
}

@keyframes zoomIn {
    from {transform: scale(0.8); opacity: 0;}
    to {transform: scale(1); opacity: 1;}
}

/* ریسپانسیو برای تبلت و دسکتاپ */
@media (min-width: 768px) {
    .gallery-container {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .gallery-item {
        flex: 1 1 300px; /* هر آیتم حداقل 300 پیکسل */
        max-width: 350px;
    }
}

html,body{
	width: 100%;
	overflow-x: hidden;
	margin: 0;
	padding: 0;
}
body{
	font-size: 18px;
	line-height: 1.5;
}
img,video,iframe{
	max-width: 100%;
	height: auto;
	display: block;
}
@media (max-width: 768px){
	.container, .main-content{
		padding-left: 15px;
		padding-right: 15px;
	}
	button, a.btn{
		min-height: 44px;
		padding: 10px 20px;
	}
}
@media (max-width: 768px){
	.lightbox {
	max-width: 1200px;
	max-height: 350px;
    display: none;
    position:fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgb(0, 0, 0);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 10px;
	    padding-top: 0;
    padding-bottom: 50px;
	
}

.lightbox-content {
	padding-top: 25px;
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.06);
    animation: zoomIn 0.3s ease;

}
div.footer--wrapper footer.footerMain div.footerMain--content{display: none;}
	div.footer--wrapper{height: 100px;}
	.gallery-item{height: 440px;}
}


@media (min-width: 768px){
	.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 20px;
	
}
	.lightbox-content {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgb(255 255 255 / 20%);
    animation: zoomIn 0.3s ease;
	
}

	.gallery-container {
    width: 100%;
		max-width: 1200px;
		height: 100%;
		max-height: 450px;
		overflow-y: auto;
		padding: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
}
@media (max-width: 768px){
	.gallery-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
	}
.gallery-container {
    width: 100%;
		max-width:auto;
		height: 100%;
		max-height: 450px;
	    overflow-y: auto;
		padding: 10px;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
}