/* Instagram Feed - Grid 3x2 con ratio 4:5 */

.ybc_instagram {
    background-color: transparent;
    display: flex;
    flex-wrap: wrap;
    padding: 30px 0;
}

/* Grid 3 columnas x 2 filas - Máximo 6 posts */
.instagram-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 20px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    max-width: 100%;
}

/* Card de post de Instagram */
.instagram-post-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    list-style: none;
    padding: 0;
}

.instagram-post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Header del post (Avatar + Username + Tiempo + Ícono IG) */
.instagram-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 15px;
    background: #fff;
}

.instagram-post-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

/* Avatar circular */
.instagram-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 18px;
    flex-shrink: 0;
    overflow: hidden;
}

/* Imagen del avatar */
.instagram-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

/* Info del usuario */
.instagram-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.instagram-username {
    font-weight: 600;
    font-size: 14px;
    color: #262626;
    line-height: 1.2;
}

.instagram-time {
    font-size: 12px;
    color: #8e8e8e;
    line-height: 1.2;
}

/* Ícono de Instagram (arriba derecha) */
.instagram-icon-badge {
    color: #E1306C;
    transition: color 0.3s ease;
    flex-shrink: 0;
}

.instagram-icon-badge:hover {
    color: #C13584;
}

/* Caption del post (texto ANTES de la imagen) */
.instagram-post-caption {
    padding: 0 15px 12px;
    background: #fff;
}

.instagram-caption-text {
    font-size: 14px;
    line-height: 1.5;
    color: #262626;
    margin: 0;
    word-wrap: break-word;
}

/* Contenedor de imagen con ratio 4:5 */
a.ybc_instagram_fancy {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 0;
    padding-top: 125%; /* Ratio 4:5 */
}

/* Imagen con ratio 4:5 */
a.ybc_instagram_fancy img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block !important;
}

a.ybc_instagram_fancy:hover img {
    transform: scale(1.05);
}

/* Header y layout */
.top_instagram {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    align-items: end;
    margin-bottom: 10px;
}

.top_instagram_follow {
    flex: 1;
}

.ybc_instagram h3.title-block,
.ybc_instagram .h3.title-block {
    color: inherit !important;
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 5px;
    margin-top: 0;
    text-transform: uppercase;
}

.ph-insta-display-name {
    color: inherit;
    opacity: 0.7;
    font-size: 90%;
    font-style: italic;
    line-height: 1;
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
}

.ph-insta-display-name:hover {
    opacity: 1;
}

/* Botón Follow Us configurable */
.ph-insta-follow-us {
    background: currentColor;
    padding: 8px 16px;
    color: #fff!important;
    font-size: 14px;
    display: inline-block;
    border-radius: 5px;
    margin-top: -2px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    text-decoration: none;
    line-height: 24px;
}

.ph-insta-follow-us:hover {
    opacity: 1;
    color: #fff!important;
}

/* Lista de imágenes (fallback para compatibilidad) */
.instagram_list_img {
    clear: both;
    width: 100%;
}

.instagram_list_img img {
    max-width: 100%;
}

/* Items individuales */
li.instagram_item_img {
    list-style: none;
}

/* Hook home */
.ybc_instagram_hook_home {
    float: left;
    margin-bottom: 30px;
    padding: 20px 15px;
    width: 100%;
}

.ybc_instagram_hook_home .ybc_instagram_header {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    width: 100%;
}

.ybc_instagram_hook_home .ybc_instagram_header > h4 {
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 0;
    margin-top: 0;
    text-transform: uppercase;
    color: inherit;
}

/* Otros estilos del header */
.ybc_instagram_header > a,
.instagram_follow_button {
    border-radius: 5px;
    box-shadow: none;
    color: inherit;
    float: right;
    font-weight: normal;
    line-height: 24px;
    padding: 5px 15px;
    text-transform: none;
}

.ybc_instagram_user {
    color: inherit;
    opacity: 0.7;
    font-size: 14px;
    clear: left;
}

/* Load more */
.ybc_instagram_load_more::before {
    content: "\f067";
    font-family: Fontawesome;
    font-size: 12px;
    margin-right: 5px;
    vertical-align: 1px;
}

.ybc_instagram_load_more {
    clear: left;
    display: block;
    margin-left: 10px;
    margin-top: 10px;
    width: 100%;
}

.ybc_instagram_load_more.hidden {
    display: none;
}

.ybc_instagram_no_more {
    clear: left;
    color: inherit;
    opacity: 0.7;
    float: left;
    font-size: 13px;
    margin-top: 5px;
}

.ybc_instagram_header > a:before,
.instagram_follow_button:before {
    content: "\f16d";
    font-family: Fontawesome;
    margin-right: 6px;
}

/* Instagram content */
.instagram_item_content {
    overflow: hidden;
    position: relative;
    perspective: 500px;
}

.instagram_item_content::before {
    bottom: 0;
    box-shadow: 0 0 50px 10px #333;
    pointer-events: none;
    content: "";
    left: 0;
    position: absolute;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: all 0.35s;
}

.instagram_item_content:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Instagram info overlay */
.ybc_instagram_info {
    bottom: 0;
    display: flex;
    justify-content: space-between;
    left: 0;
    pointer-events: none;
    padding: 5px 10px;
    position: absolute;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
}

.instagram_item_content:hover .ybc_instagram_info {
    opacity: 1;
    visibility: visible;
}

.ybc_instagram_info span {
    color: #fff;
}

.ybc_instagram_likes::before {
    content: "\f08a";
    font-family: fontawesome;
    font-size: 14px;
    padding-right: 6px;
}

.ybc_instagram_comments::before {
    content: "\f0e5";
    font-family: fontawesome;
    font-size: 14px;
    padding-right: 6px;
}

/* Focus states */
.ybc_instagram *:focus,
.ybc_instagram *:active {
    outline: medium none;
    text-decoration: none;
}

/* Footer hook */
.ybc_instagram_hook_footer .instagram_item_img {
    float: left;
    margin: 0;
    padding: 5px;
    width: 33.33%;
}

.ybc_instagram_hook_footer #footer_instagram a.btn {
    clear: left;
    float: left;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 5px;
    box-shadow: none;
    color: inherit;
    font-weight: normal;
    line-height: 24px;
    text-transform: none;
}

#footer_instagram a.btn:before {
    content: "\f16d";
    font-family: Fontawesome;
    margin-right: 6px;
}

.ybc_instagram_hook_footer .ybc_instagram_info {
    font-size: 10px;
    padding: 2px;
    line-height: 14px;
}

.ybc_instagram_hook_footer .ybc_instagram_likes::before,
.ybc_instagram_hook_footer .ybc_instagram_comments::before {
    font-size: 10px;
    padding-right: 3px;
}

.ybc_instagram_hook_footer .ybc_instagram_header {
    display: block;
    float: left;
    width: 100%;
}

.ybc_instagram_hook_footer .ybc_instagram_user {
    float: left;
    margin-bottom: 5px;
    margin-left: 0;
    margin-top: 5px;
    width: 100%;
}

.ybc_instagram_hook_footer .ybc_instagram_load_more {
    font-size: 14px;
    margin-left: 0;
}

.ybc_instagram_hook_footer .instagram_list_img {
    margin-top: 10px;
}

/* Sidebar hooks */
.ybc_instagram_hook_right .ybc_instagram_header > a,
.ybc_instagram_hook_left .ybc_instagram_header > a {
    float: left;
    font-size: 12px;
    line-height: 20px;
    margin-bottom: 5px;
    padding: 3px 10px;
}

.ybc_instagram_hook_left .ybc_instagram_user,
.ybc_instagram_hook_right .ybc_instagram_user {
    clear: left;
    display: block;
    margin-left: 0;
}

.ybc_instagram_hook_right .instagram_item_img,
.ybc_instagram_hook_left .instagram_item_img {
    float: left;
    padding: 5px;
    width: 33.33%;
}

.ybc_instagram_hook_left .instagram_list_img,
.ybc_instagram_hook_right .instagram_list_img {
    margin-left: -5px;
    width: calc(100% + 10px);
    margin-top: 5px;
}

.ybc_instagram_hook_right .ybc_instagram_info,
.ybc_instagram_hook_left .ybc_instagram_info {
    font-size: 10px;
    padding: 0 3px;
}

.ybc_instagram_hook_left .ybc_instagram_likes::before,
.ybc_instagram_hook_right .ybc_instagram_likes::before,
.ybc_instagram_hook_right .ybc_instagram_comments::before,
.ybc_instagram_hook_left .ybc_instagram_comments::before {
    font-size: 10px;
    padding-right: 3px;
}

.ybc_instagram_hook_left .ybc_instagram_load_more,
.ybc_instagram_hook_right .ybc_instagram_load_more {
    margin-left: 0;
    font-size: 13px;
}

.ybc_instagram_hook_home.is_17 .ybc_instagram_no_more {
    margin-left: 10px;
}

.ybc_instagram_hook_left,
.ybc_instagram_hook_right {
    box-shadow: 2px 2px 11px 0 rgba(0, 0, 0, 0.1);
    float: left;
    margin-bottom: 1.5625rem;
    padding: 1.5625rem 1.25rem;
    width: 100%;
}

.ybc_instagram_hook_left .ybc_instagram_header h4,
.ybc_instagram_hook_right .ybc_instagram_header h4 {
    font-size: 0.9375rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .instagram-grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .instagram-post-card {
        border-radius: 10px;
    }
    
    .instagram-avatar {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .instagram-username {
        font-size: 13px;
    }
    
    .instagram-time {
        font-size: 11px;
    }
    
    .instagram-caption-text {
        font-size: 13px;
    }
    
    .ybc_instagram_hook_footer {
        float: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .instagram-grid-3x2 {
        grid-template-columns: repeat(1, 1fr);
        gap: 15px;
    }
    
    a.ybc_instagram_fancy {
        padding-top: 125%; /* Mantener ratio 4:5 en móvil */
    }
    
    .ybc_instagram_info {
        padding: 5px;
    }

    .ybc_instagram_info span, 
    .ybc_instagram_info span::before {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .ybc_instagram_hook_footer {
        float: left;
        width: 16.66%;
    }
}

@media (max-width: 767px) {
    .ybc_instagram_hook_footer #footer_instagram a.btn {
        margin-top: 10px;
    }

    #footer_instagram {
        padding: 0 10px;
    }

    #footer_instagram .ybc_instagram_load_more {
        margin-bottom: 20px;
    }

    .ybc_instagram_hook_footer .ybc_instagram_header .h3 {
        display: inline-block;
    }
}

/* Fancybox */
.fancybox-wrap.fancybox-opened {
    z-index: 1200;
}

.fancybox-overlay.fancybox-overlay-fixed {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    height: 100%;
    bottom: 0;
    display: block;
}

.fancybox-opened .fancybox-outer,
.fancybox-opened .fancybox-inner,
.fancybox-opened .fancybox-bg,
.fancybox-opened .fancybox-stage {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.phInstaFancybox-slide--video .phInstaFancybox-content {
    width: auto !important;
}

.zooming_enabled .instagram_item_content:hover img {
    transform: scale(1.2);
}


/* Grid 3 columnas x 2 filas - Máximo 6 posts */
.instagram-grid-3x2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(2, auto);
    gap: 15px;
    list-style: none;
    padding: 0;
    margin: 20px 0 0;
    max-width: 100%;
}

/* Cada item del grid */
.instagram-grid-3x2 .instagram_item_img {
    width: 100%;
    padding: 0;
    list-style: none;
}

/* Contenedor con ratio 4:5 fijo */
a.ybc_instagram_fancy {
    display: block;
    width: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    padding-top: 125%; /* Ratio 4:5 = 5/4 = 1.25 = 125% */
}

/* Imagen con ratio 4:5 */
a.ybc_instagram_fancy img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
    display: block !important;
}

a.ybc_instagram_fancy:hover img {
    transform: scale(1.05);
}

/* Header y layout */
.top_instagram {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    align-items: end;
    margin-bottom: 10px;
}

.top_instagram_follow {
    flex: 1;
}

.ybc_instagram h3.title-block,
.ybc_instagram .h3.title-block {
    color: inherit !important;
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 5px;
    margin-top: 0;
    text-transform: uppercase;
}

.ph-insta-display-name {
    color: inherit;
    opacity: 0.7;
    font-size: 90%;
    font-style: italic;
    line-height: 1;
    margin-bottom: 5px;
    display: block;
    text-decoration: none;
}

.ph-insta-display-name:hover {
    opacity: 1;
}

/* Botón Follow Us configurable */
.ph-insta-follow-us {
    background: currentColor;
    padding: 8px 16px;
    color: #fff!important;
    font-size: 14px;
    display: inline-block;
    border-radius: 5px;
    margin-top: -2px;
    opacity: 0.9;
    transition: opacity 0.3s ease;
    text-decoration: none;
    line-height: 24px;
}

.ph-insta-follow-us:hover {
    opacity: 1;
    color: #fff!important;
}

/* Lista de imágenes (fallback para compatibilidad) */
.instagram_list_img {
    clear: both;
    width: 100%;
}

.instagram_list_img img {
    max-width: 100%;
}

/* Items individuales */
li.instagram_item_img {
    list-style: none;
}

/* Hook home */
.ybc_instagram_hook_home {
    float: left;
    margin-bottom: 30px;
    padding: 20px 15px;
    width: 100%;
}

.ybc_instagram_hook_home .ybc_instagram_header {
    display: flex;
    justify-content: space-between;
    padding: 0 10px;
    width: 100%;
}

.ybc_instagram_hook_home .ybc_instagram_header > h4 {
    font-size: 24px;
    line-height: 34px;
    margin-bottom: 0;
    margin-top: 0;
    text-transform: uppercase;
    color: inherit;
}

/* Otros estilos del header */
.ybc_instagram_header > a,
.instagram_follow_button {
    border-radius: 5px;
    box-shadow: none;
    color: inherit;
    float: right;
    font-weight: normal;
    line-height: 24px;
    padding: 5px 15px;
    text-transform: none;
}

.ybc_instagram_user {
    color: inherit;
    opacity: 0.7;
    font-size: 14px;
    clear: left;
}

/* Load more */
.ybc_instagram_load_more::before {
    content: "\f067";
    font-family: Fontawesome;
    font-size: 12px;
    margin-right: 5px;
    vertical-align: 1px;
}

.ybc_instagram_load_more {
    clear: left;
    display: block;
    margin-left: 10px;
    margin-top: 10px;
    width: 100%;
}

.ybc_instagram_load_more.hidden {
    display: none;
}

.ybc_instagram_no_more {
    clear: left;
    color: inherit;
    opacity: 0.7;
    float: left;
    font-size: 13px;
    margin-top: 5px;
}

.ybc_instagram_header > a:before,
.instagram_follow_button:before {
    content: "\f16d";
    font-family: Fontawesome;
    margin-right: 6px;
}

/* Instagram content */
.instagram_item_content {
    overflow: hidden;
    position: relative;
    perspective: 500px;
}

.instagram_item_content::before {
    bottom: 0;
    box-shadow: 0 0 50px 10px #333;
    pointer-events: none;
    content: "";
    left: 0;
    position: absolute;
    width: 100%;
    visibility: hidden;
    opacity: 0;
    z-index: 1;
    transition: all 0.35s;
}

.instagram_item_content:hover:before {
    opacity: 1;
    visibility: visible;
}

/* Instagram info overlay */
.ybc_instagram_info {
    bottom: 0;
    display: flex;
    justify-content: space-between;
    left: 0;
    pointer-events: none;
    padding: 5px 10px;
    position: absolute;
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    width: 100%;
    z-index: 1;
    opacity: 0;
    visibility: hidden;
    transition: all 0.35s;
}

.instagram_item_content:hover .ybc_instagram_info {
    opacity: 1;
    visibility: visible;
}

.ybc_instagram_info span {
    color: #fff;
}

.ybc_instagram_likes::before {
    content: "\f08a";
    font-family: fontawesome;
    font-size: 14px;
    padding-right: 6px;
}

.ybc_instagram_comments::before {
    content: "\f0e5";
    font-family: fontawesome;
    font-size: 14px;
    padding-right: 6px;
}

/* Focus states */
.ybc_instagram *:focus,
.ybc_instagram *:active {
    outline: medium none;
    text-decoration: none;
}

/* Footer hook */
.ybc_instagram_hook_footer .instagram_item_img {
    float: left;
    margin: 0;
    padding: 5px;
    width: 33.33%;
}

.ybc_instagram_hook_footer #footer_instagram a.btn {
    clear: left;
    float: left;
    font-size: 12px;
    padding: 2px 5px;
    border-radius: 5px;
    box-shadow: none;
    color: inherit;
    font-weight: normal;
    line-height: 24px;
    text-transform: none;
}

#footer_instagram a.btn:before {
    content: "\f16d";
    font-family: Fontawesome;
    margin-right: 6px;
}

.ybc_instagram_hook_footer .ybc_instagram_info {
    font-size: 10px;
    padding: 2px;
    line-height: 14px;
}

.ybc_instagram_hook_footer .ybc_instagram_likes::before,
.ybc_instagram_hook_footer .ybc_instagram_comments::before {
    font-size: 10px;
    padding-right: 3px;
}

.ybc_instagram_hook_footer .ybc_instagram_header {
    display: block;
    float: left;
    width: 100%;
}

.ybc_instagram_hook_footer .ybc_instagram_user {
    float: left;
    margin-bottom: 5px;
    margin-left: 0;
    margin-top: 5px;
    width: 100%;
}

.ybc_instagram_hook_footer .ybc_instagram_load_more {
    font-size: 14px;
    margin-left: 0;
}

.ybc_instagram_hook_footer .instagram_list_img {
    margin-top: 10px;
}

/* Sidebar hooks */
.ybc_instagram_hook_right .ybc_instagram_header > a,
.ybc_instagram_hook_left .ybc_instagram_header > a {
    float: left;
    font-size: 12px;
    line-height: 20px;
    margin-bottom: 5px;
    padding: 3px 10px;
}

.ybc_instagram_hook_left .ybc_instagram_user,
.ybc_instagram_hook_right .ybc_instagram_user {
    clear: left;
    display: block;
    margin-left: 0;
}

.ybc_instagram_hook_right .instagram_item_img,
.ybc_instagram_hook_left .instagram_item_img {
    float: left;
    padding: 5px;
    width: 33.33%;
}

.ybc_instagram_hook_left .instagram_list_img,
.ybc_instagram_hook_right .instagram_list_img {
    margin-left: -5px;
    width: calc(100% + 10px);
    margin-top: 5px;
}

.ybc_instagram_hook_right .ybc_instagram_info,
.ybc_instagram_hook_left .ybc_instagram_info {
    font-size: 10px;
    padding: 0 3px;
}

.ybc_instagram_hook_left .ybc_instagram_likes::before,
.ybc_instagram_hook_right .ybc_instagram_likes::before,
.ybc_instagram_hook_right .ybc_instagram_comments::before,
.ybc_instagram_hook_left .ybc_instagram_comments::before {
    font-size: 10px;
    padding-right: 3px;
}

.ybc_instagram_hook_left .ybc_instagram_load_more,
.ybc_instagram_hook_right .ybc_instagram_load_more {
    margin-left: 0;
    font-size: 13px;
}

.ybc_instagram_hook_home.is_17 .ybc_instagram_no_more {
    margin-left: 10px;
}

.ybc_instagram_hook_left,
.ybc_instagram_hook_right {
    box-shadow: 2px 2px 11px 0 rgba(0, 0, 0, 0.1);
    float: left;
    margin-bottom: 1.5625rem;
    padding: 1.5625rem 1.25rem;
    width: 100%;
}

.ybc_instagram_hook_left .ybc_instagram_header h4,
.ybc_instagram_hook_right .ybc_instagram_header h4 {
    font-size: 0.9375rem;
}

/* Responsive para móviles */
@media (max-width: 768px) {
    .instagram-grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .ybc_instagram_hook_footer {
        float: left;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .instagram-grid-3x2 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    a.ybc_instagram_fancy {
        padding-top: 125%; /* Mantener ratio 4:5 en móvil */
    }
    
    .ybc_instagram_info {
        padding: 5px;
    }

    .ybc_instagram_info span, 
    .ybc_instagram_info span::before {
        font-size: 12px;
    }
}

@media (min-width: 768px) {
    .ybc_instagram_hook_footer {
        float: left;
        width: 16.66%;
    }
}

@media (max-width: 767px) {
    .ybc_instagram_hook_footer #footer_instagram a.btn {
        margin-top: 10px;
    }

    #footer_instagram {
        padding: 0 10px;
    }

    #footer_instagram .ybc_instagram_load_more {
        margin-bottom: 20px;
    }

    .ybc_instagram_hook_footer .ybc_instagram_header .h3 {
        display: inline-block;
    }
}

/* Fancybox */
.fancybox-wrap.fancybox-opened {
    z-index: 1200;
}

.fancybox-overlay.fancybox-overlay-fixed {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    width: 100%;
    z-index: 1100;
    background-color: rgba(0, 0, 0, 0.7);
    cursor: pointer;
    height: 100%;
    bottom: 0;
    display: block;
}

.fancybox-opened .fancybox-outer,
.fancybox-opened .fancybox-inner,
.fancybox-opened .fancybox-bg,
.fancybox-opened .fancybox-stage {
    position: relative;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.phInstaFancybox-slide--video .phInstaFancybox-content {
    width: auto !important;
}

.zooming_enabled .instagram_item_content:hover img {
    transform: scale(1.2);
}

/* ================================
   Design System Overrides (Velox)
   ================================ */

.instagram-post-card {
    background: var(--color-white);
    border-radius: var(--radius-l);
    border: var(--border-width-1) solid var(--color-border-default);
    box-shadow: none;
}

.instagram-post-card:hover {
    transform: translateY(-2px);
    border-color: var(--color-border-interactive);
    box-shadow: none;
}

.instagram-post-header {
    padding: var(--space-s) var(--space-m);
    background: var(--color-white);
}

.instagram-avatar {
    border-radius: var(--radius-full);
    background: var(--color-primary-600);
    color: var(--color-white);
}

.instagram-username {
    color: var(--color-neutral-900);
    font-weight: 600;
}

.instagram-time {
    color: var(--color-neutral-600);
}

.instagram-caption-text {
    color: var(--color-neutral-900);
}

.ph-insta-follow-us {
    background: var(--color-primary-600);
    color: var(--color-white) !important;
    border-radius: var(--radius-m);
    padding: var(--space-xs) var(--space-s);
}

.ph-insta-follow-us:hover {
    opacity: 0.9;
}

.instagram-icon-badge {
    color: var(--color-primary-600);
}

