@keyframes imgg {
	0%{opacity: 0;}
	100%{opacity: 1;}
}

.container {
    width: 100%;
    max-width: 1200px;
    text-align: center;
    padding: 0 15px;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 2rem;
}

.slider-container {
    position: relative;
    overflow: hidden;
    padding: 20px 0;
    user-select: none;
}

.slider-track {

    display: flex;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
    gap: 20px;
    padding: 10px;
    flex-wrap: nowrap;
}

.photo-card {
    animation: imgg 1s ease-out forwards;
	animation-delay: 2s;
    flex: 0 0 100%; /* پیفرض موبایل: ۱۰۰٪ عرض */
    max-width: 100%;
    background: rgb(0,98,106);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    overflow: hidden;
    transition: transform 0.3s ease;
    min-width: 0;
}

.photo-card:hover {
	animation: imgg 1s ease-out forwards;
	animation-delay: 2s;
    transform: translateY(-5px);
	box-shadow: 0px 0px 5px black;
}

.image-frame {
	animation: imgg 1s ease-out forwards;
	animation-delay: 2s;
    width: 100%;
    height: 300px;
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
}

.image-frame img {

	transition: 1.5s;
	border-radius: 5px;
	border: none;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.photo-info {
    padding: 15px;
}

.caption {
    font-size: 1.1rem;
    color: white;
    margin-bottom: 15px;
    line-height: 1.6;
    min-height: 3em;
}

.actions {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.like-btn, .download-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: bold;
}

.like-btn {
    background-color: #eee;
    color: #555;
}

.like-btn.liked {
    background-color: #ff4757;
    color: white;
}

.download-btn {
    background-color: rgba(0, 0, 0, 0.74);
    color: white;
}

.like-btn:hover, .download-btn:hover {
	color: rgb(0,98,106);
    opacity: 0.9;
    transform: scale(1.05);
	  background-color: rgba(0, 0, 0, 0.94);
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,98, 106, 0.5);
    color: white;
    border: none;
    padding: 12px 15px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    font-size: 1.2rem;
    transition: background 0.3s;
}

.prev-btn { left: 10px; }
.next-btn { right: 10px; }

.prev-btn:hover, .next-btn:hover {
    background:     background: rgb(0, 98, 106);
}

/* تبلت: ۲ کارت */
@media (min-width: 768px) {
    .photo-card {
        flex: 0 0 calc(50% - 10px);
    }
    h1 { font-size: 2.5rem; }
}

/* دسکتاپ: ۳ کارت */
@media (min-width: 1024px) {
    .photo-card {
        flex: 0 0 calc(33.333% - 13.33px);
    }
    h1 { font-size: 3rem; }
}

/* موبایل کوچک */
@media (max-width: 480px) {
    .image-frame { height: 250px; }
    .caption { font-size: 1rem; }
    .like-btn, .download-btn { padding: 8px 15px; font-size: 0.9rem; }
}
