ഫലകം:Multiple gallery/styles.css

20:14, 27 ഒക്ടോബർ 2025-നു ഉണ്ടായിരുന്ന രൂപം സൃഷ്ടിച്ചത്:- Ranjithsiji (സംവാദം | സംഭാവനകൾ)
(മാറ്റം) ←പഴയ രൂപം | ഇപ്പോഴുള്ള രൂപം (മാറ്റം) | പുതിയ രൂപം→ (മാറ്റം)
/* Main container */
.responsive-gallery-container {
    margin: 1em 0;
    clear: both;
    max-width: 100%;
}

/* Gallery box */
.responsive-gallery-box {
    box-sizing: border-box;
    border: 1px solid #ccc;
    background-color: #f9f9f9;
    padding: 8px;
}

/* Header and footer */
.gallery-header,
.gallery-footer {
    padding: 8px 10px;
    font-weight: bold;
    background-color: #eaecf0;
    border-bottom: 1px solid #ccc;
}

.gallery-footer {
    border-top: 1px solid #ccc;
    border-bottom: none;
    margin-top: 8px;
}

/* Flexbox images container */
.gallery-images {
    display: flex;
    gap: 4px;
    padding: 4px;
}

/* Horizontal gallery (default) */
.gallery-horizontal {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
}

.gallery-horizontal .gallery-item {
    flex: 0 1 auto;
    display: flex;
    flex-direction: column;
}

/* Vertical gallery */
.gallery-vertical {
    flex-direction: column;
    align-items: flex-start;
}

.gallery-vertical .gallery-item {
    flex: 0 1 auto;
    display: flex;
    flex-direction: row;
    width: 100%;
    align-items: center;
    gap: 8px;
}

.gallery-vertical .gallery-caption {
    flex: 1;
}

/* Box gallery (grid-like) */
.gallery-box {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.gallery-box .gallery-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
}

/* Gallery item */
.gallery-item {
    box-sizing: border-box;
    overflow: hidden;
    transition: transform 0.2s ease;
}

.gallery-item:hover {
    transform: scale(1.02);
    z-index: 1;
}

/* Image wrapper */
.gallery-image-wrapper {
    line-height: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
}

.gallery-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

.gallery-box .gallery-image-wrapper {
    width: 100%;
    height: 100%;
}

.gallery-box .gallery-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Caption styling */
.gallery-caption {
    padding: 4px 2px;
    font-size: 94%;
    line-height: 1.4em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    background-color: #f9f9f9;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .responsive-gallery-container {
        float: none !important;
        margin: 1em 0 !important;
        width: 100% !important;
    }
    
    .gallery-horizontal,
    .gallery-box {
        flex-direction: column !important;
        align-items: center;
    }
    
    .gallery-item {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .gallery-vertical .gallery-item {
        flex-direction: column !important;
    }
    
    .gallery-image-wrapper img {
        max-width: 100% !important;
        height: auto !important;
    }
}

@media (max-width: 480px) {
    .responsive-gallery-box {
        padding: 4px !important;
    }
    
    .gallery-header,
    .gallery-footer {
        padding: 6px !important;
        font-size: 90% !important;
    }
    
    .gallery-caption {
        font-size: 85% !important;
        padding: 3px 1px !important;
    }
    
    .gallery-images {
        gap: 2px !important;
    }
}
"https://schoolwiki.in/index.php?title=ഫലകം:Multiple_gallery/styles.css&oldid=2890243" എന്ന താളിൽനിന്ന് ശേഖരിച്ചത്