/*
Theme Name: Instafeed
Theme URI: https://guapsie.com
Author: guapsie
Author URI: https://guapsie.com
Description: Tema minimalista para mostrar una galeria con el formato Instagram.
Version: 1.0
*/

html,
body,
.site-main {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body {
    font-family: 'Roboto Condensed', sans serif;
    /*overflow-x: hidden;*/
}

/* POLICES */
h1 { font-weight: 900; }
h2 { font-weight: 700; }
h3 { font-weight: 500; }
p { font-weight: 400; }

/*
HEADER
*/
.instafeed-site-header {
    background: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 50px;
}

.instafeed-header-inner {
    width: 600px;
    margin: 0 auto;
    padding: 20px;
}

.instafeed-profile {
    display: flex;
    align-items: center;
    gap: 20px;
}

.instafeed-profile-container {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    cursor: default;
}

.instafeed-profile-info {
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.site-title {
    font-size: 26px;
    margin: 0;
    text-align: left;
}

.site-title a {
    text-decoration: none;
    color: #000;
}

.site-bio {
    color: #333;
    font-size: 16px;
    margin: 0;
    padding-top: 5px;
    text-align: left;
}

.contact-info a {
    display: block;
    color: #999;
    text-align: left;
    margin: 0;
    text-decoration: none;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 15px;
}

.menu li a {
    text-decoration: none;
    color: #000;
    font-weight: 500;
}

.menu li a:hover {
    color: #555;
}

/*
    CONTENT
*/
#content {
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
}

@media (max-width: 600px) {
    #content {
        width: 100%;
        padding: 0 10px;
    }
}

/*
FOOTER
*/
.instafeed-footer {
    margin-top: 50px;
    min-height: 50px;
    padding: 20px;
    text-align: center;
}

.instafeed-footer-inner {
    width: 100%;
    margin: 0 auto;
}

/*
The Feed
*/

/* Botones filters */
.instafeed-filters {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fff;
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.instafeed-filters button {
    background: #fff;
    color: #000;
    border: none;
    border-bottom: 2px solid transparent;
    padding: 6px 16px;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    position: relative;
    transition: all 0.2s ease-in-out;
}

.instafeed-filters button::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #000;
    transition: width 0.25s ease;
}

.instafeed-filters button:hover::after {
    width: 100%;
}

.instafeed-filters button.active {
    border-bottom: 2px solid #000;
}

.instafeed-filters button.active::after {
    width: 100%;
}

/* The feed */
.instafeed {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: center;
    margin: 0 auto;
    padding: 0 10px;
    box-sizing: border-box;
    width: 100%;
    max-width: 600px;
}

.instabox {
    position: relative;
    display: block;
    aspect-ratio: 1/1;
    overflow: hidden;
    flex: 1 1 calc(20% - 10px);
    max-width: calc(20% - 10px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    opacity: 1;
    box-sizing: border-box;
}

.instabox.hidden {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}

.instabox img {
	width: 100%;
	height: 100%;
	display: block;
    object-fit: cover;
}

@media (max-width: 900px) {
    .instabox { 
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px);
    }
}

@media (max-width: 400px) {
    .instafeed { width: 100vw; }
    .instabox { 
        flex: 1 1 calc(50% - 10px);
        max-width: calc(50% - 10px); 
    }
    
}


/* SCROLL TO TOP*/
#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    font-size: 24px;
    border: none;
    border-radius: 50%;
    background: rgba(0,0,0,0.5);
    color: #fff;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: background 0.3s ease;
}

#scrollToTop:hover {
    background: rgba(0,0,0,0.8);
}
