/* IG Tags Component & Module Styles - Instagram-style v4.2.09 */

/* Instagram-style font family for all component and module views */
body.com_igtags,
.com_igtags .profile-real-name,
.com_igtags .igtags-title,
.com_igtags .igtags-heading,
.com_igtags .igtags-content,
.com_igtags .igtags-meta,
.com_igtags h1,
.com_igtags h2,
.com_igtags h3,
.com_igtags p,
.profile-real-name,
.igtags-title,
.igtags-content,
.igtags-heading,
.igtags-meta {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.mod-igtags {
    width: 100%;
}

.mod-igtags .igtags-grid {
    width: 100%;
}

.mod-igtags .igtags-item canvas {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 1 / 1;
}

.mod-igtags .igtags-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 1 / 1;
}

.mod-igtags--column .igtags-item {
    width: 100%;
}

.mod-igtags--fullwidth .igtags-item {
    width: 100%;
}

/* Instagram-style colors */
.com_igtags .igtags-title,
.igtags-title {
    font-size: 16px;
    color: #262626;
}

.com_igtags .igtags-content,
.igtags-content {
    color: #313131;
    line-height: 18px;
}

.com_igtags .igtags-heading,
.igtags-heading {
    font-size: 40px;
    color: #4b4b4b;
}

.com_igtags .igtags-meta,
.igtags-meta {
    color: #686868 !important;
    font-size: 10px !important;
}

/* Grid layout improvements */
.com_igtags .uk-grid .igtags-item,
#wk-grid .igtags-item {
    transition: transform 0.2s ease-in-out;
}

.com_igtags .uk-grid .igtags-item:hover,
#wk-grid .igtags-item:hover {
    transform: scale(1.02);
}

/* Overlay styles */
.com_igtags .uk-overlay-default,
.uk-overlay-default {
    background: rgba(0, 0, 0, 0.7);
}

/* Circle images for profile/hashtag */
.com_igtags .profile-circle,
.profile-circle {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto;
    border: 2px solid #dbdbdb;
}

/* Responsive improvements */
@media (max-width: 959px) {

    .com_igtags .profile-circle,
    .profile-circle {
        width: 80px;
        height: 80px;
    }
}

@media (max-width: 639px) {

    .com_igtags .profile-circle,
    .profile-circle {
        width: 60px;
        height: 60px;
    }
}

/* Stile per le caption del lightbox - dimensioni contenute */
.uk-lightbox .uk-lightbox-caption,
.uk-lightbox-caption {
    font-size: 14px !important;
    line-height: 1.4 !important;
    text-align: center !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;

    /* Forza dimensioni contenute */
    width: fit-content !important;
    max-width: 600px !important;
    min-width: 200px !important;

    /* Stile */
    padding: 12px 20px !important;
    background: rgba(0, 0, 0, 0.85) !important;
    border-radius: 6px !important;
    color: #ffffff !important;
    box-sizing: border-box !important;

    /* Posizionamento e centratura perfetta */
    position: absolute !important;
    bottom: 20px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    z-index: 1001 !important;
}

/* Responsive per mobile */
@media (max-width: 768px) {

    .uk-lightbox .uk-lightbox-caption,
    .uk-lightbox-caption {
        font-size: 12px !important;
        padding: 10px 15px !important;
        max-width: 90vw !important;
        min-width: 150px !important;
    }
}
