/*
Theme Name: GBPics Theme
Author: #
Author URI: #
Description: Image gallery theme for pictures, GIFs and quotes - inspired by GBPicsOnline
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
*/

html {
    scroll-behavior: smooth;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.animate__animated {
    animation-duration: 1s;
    animation-fill-mode: both;
}

.animate__fadeIn {
    animation-name: fadeIn;
}

.animate__fadeInUp {
    animation-name: fadeInUp;
}

.animate__delay-1s {
    animation-delay: 0.2s;
}

.animate__delay-2s {
    animation-delay: 0.4s;
}

.animate__delay-3s {
    animation-delay: 0.6s;
}

.animate__delay-4s {
    animation-delay: 0.8s;
}

/* Hero section */

#first-block {
    height: calc(100vh - 86px);
    padding: 2rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    position: relative;
    background-repeat: no-repeat;
    background-attachment: fixed;
    overflow: hidden;
}

#first-block .overlay {
    z-index: 1;
}

#first-block .container {
    z-index: 2;
}

#first-block .btn-primary {
    z-index: 3;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(13, 110, 253, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(13, 110, 253, 0);
    }
}

.scroll-btn {
    transition: transform 0.3s ease;
    animation: pulse 2s infinite;
}

.scroll-btn:hover {
    transform: translateY(5px);
}

body {
    font-family: 'Lato', sans-serif !important;
}

.navbar-brand,
h1,
h2,
h3 {
    font-weight: 700;
    font-family: 'Playfair Display', serif;
}

h2 {
    position: relative;
    line-height: 2rem !important;
}

h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 35px;
    height: 2px;
    background-color: coral;
    border-radius: 2px;
}

.navbar-nav .dropdown-toggle::after {
    border: none !important;
}

.alignleft {
    float: left;
    margin: 10px;
}

.navbar-nav .nav-link,
.navbar-nav .dropdown-toggle {
    position: relative;
}

.navbar-nav .nav-link::after,
.navbar-nav .dropdown-toggle::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 0;
    height: 2px;
    background-color: #0d6efd;
    transition: width 0.3s ease, left 0.3s ease;
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .dropdown-toggle:hover::after {
    width: 100%;
    left: 0;
}

.rank-math-breadcrumb p {
    margin: 0;
}

#scrollToTop.show {
    opacity: 1;
}

#scrollToTop.hide {
    opacity: 0;
}

@media (max-width:769px) {
    .alignleft {
        float: unset;
        display: flex;
        margin: auto;
    }
}

img {
    max-width: 100%;
    height: auto;
}

.aligncenter {
    margin: auto;
}

.aligncenter,
.alignnone {
    display: grid;
}

.posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.25rem;
    max-width: var(--max-width);
    margin: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
    gap: 1.25rem;
    max-width: var(--max-width);
    margin: auto;
}

.entry-content .gallery {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin: 1rem 0;
}

.entry-content .gallery .gallery-item {
    float: none !important;
    width: 100% !important;
    margin: 0 !important;
}

.entry-content .gallery .gallery-caption {
    text-align: center;
    margin-top: 0.5rem;
}

.entry-content .gallery .gallery-title,
.entry-content .gallery .gallery-description {
    display: block;
}

.entry-content .gallery .gallery-title {
    font-weight: 700;
}

.entry-content .gallery .gallery-description {
    margin-top: 0.25rem;
    color: #555;
}

.entry-content .gallery .gallery-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 0.75rem;
}

.entry-content .gallery .gallery-share-actions {
    margin-top: 0.6rem;
}

.entry-content .gallery .gallery-copy-actions {
    margin-top: 0.5rem;
}

.entry-content .gallery .gallery-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.7rem;
    font-size: 0.85rem;
    line-height: 1.2;
    border: 1px solid #d0d7de;
    border-radius: 999px;
    background: #fff;
    color: #212529;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.entry-content .gallery .gallery-icon-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    font-size: 1rem;
}

.entry-content .gallery .gallery-action-btn:hover {
    background: #0d6efd;
    border-color: #0d6efd;
    color: #fff;
}

.entry-content .gallery .gallery-action-btn.is-copied {
    background: #198754;
    border-color: #198754;
    color: #fff;
}

.position-md-absolute {
    position: static;
}

.translate-md-middle {
    transform: unset;
}

@media (min-width: 768px) {
    .position-md-absolute {
        position: absolute !important;
    }
    .translate-md-middle {
        transform: translate(-50%, -50%) !important;
    }
	.post-header{width: 75%;}
}

.social-icons a {
    text-decoration: none;
}

.social-icons a[aria-label="facebook"] i {
    color: #1877F2;
}

.social-icons a[aria-label="pinterest"] i {
    color: #E60023;
}

.social-icons a[aria-label="youtube"] i {
    color: #FF0000;
}

.social-icons a[aria-label="instagram"] i {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.social-icons a[aria-label="tiktok"] i {
    color: #000000;
}

.social-icons a:hover i {
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.social-icons {
    text-align: center;
}

.social-icons a {
    margin: 10px;
    transition: all 0.3s ease;
}

.social-icons i {
    font-size: 2rem;
}

.toggle-icon {
    transition: transform .3s ease;
}

button.collapsed .toggle-icon {
    transform: rotate(-90deg);
}

.collapsed-content {
    max-height: 70px;
    overflow: hidden;
    position: relative;
}

.collapsed-content::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50px;
    background: linear-gradient(rgba(255, 255, 255, 0), white);
}

.read-more-btn .arrow-icon {
    display: inline-block;
    margin-left: 0.3em;
    transition: transform 0.3s ease;
    transform: rotate(0deg);
}

.read-more-btn.expanded .arrow-icon {
    transform: rotate(180deg);
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: .6rem;
    max-width: var(--max-width);
    margin: auto;
}

/* Featured categories on homepage */

.featured-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 1.5rem 0;
}

.featured-categories a {
    padding: 0.4rem 1rem;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.featured-categories a:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Category card with image */

.category-card {
    text-decoration: none;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.category-card img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
}

.category-card .card-label {
    padding: 0.5rem;
    text-align: center;
    font-weight: 600;
    background: #fff;
}

/* Scroll-to-Top button */

#scrollToTop {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: #0066cc;
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 1.25rem;
    display: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: opacity 0.3s ease;
    z-index: 1000;
}

#scrollToTop.show {
    display: flex;
    opacity: 1;
}

#scrollToTop.hide {
    opacity: 0;
}

.chev {
    display: inline-block;
    transition: transform 200ms ease;
}

[aria-expanded="true"] .chev {
    transform: rotate(180deg);
}

@media (prefers-reduced-motion: reduce) {
    .chev {
        transition: none;
    }
}

/* Footer category groups */

.footer-category-group h6 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.footer-category-group ul {
    list-style: none;
    padding: 0;
}

.footer-category-group ul li a {
    color: inherit;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.15rem 0;
    display: block;
}

.footer-category-group ul li a:hover {
    text-decoration: underline;
}

/* Image post card */

.post-card {
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
}

.post-card img {
    width: 100%;
    object-fit: cover;
}

.post-card .card-body {
    padding: 0.75rem;
    text-align: center;
}

/* Share buttons on single post */

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.share-buttons a:hover {
    opacity: 0.8;
}
.post-header{ 
	width:100%;
}
.share-buttons .share-whatsapp { background: #25D366; }
.share-buttons .share-facebook { background: #1877F2; }
.share-buttons .share-pinterest { background: #E60023; }
.share-buttons .share-twitter { background: #1DA1F2; }
.gallery-item .gallery-icon,.gallery-item .gallery-caption{text-align:center;}