/* Oldal bejegyzések konténer */
.oldalbejegyzes-container {
    display: flex;
    flex-direction: column;
        font-family: "Open Sans", Sans-serif;
}



.oldalbejegyzes-date {
    margin: 0;
    display: inline-block;
    color: #4D6472;
    font-size: 20px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    border-bottom: 1px solid #4D6472;
    width: 173px;
    margin-bottom: 20px;
}

/* Cím */
.oldalbejegyzes-title {
font-size: 24px;
color: #47342D;
font-style: normal;
font-weight: 700;
line-height: normal;
margin-bottom: 15px;
}

.oldalbejegyzes-content p {
    margin: 0 0 16px 0;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    color: #47342D;
}



.oldalbejegyzes-content p:last-child {
    margin-bottom: 0;
}

.oldalbejegyzes-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 20px 0;
    display: block;
}

.oldalbejegyzes-content h1, .oldalbejegyzes-content h2, .oldalbejegyzes-content h3, .oldalbejegyzes-content h4, .oldalbejegyzes-content h5, .oldalbejegyzes-content h6 {
    margin: 25px 0 15px 0;
    color: #47342D;
    font-size: 19px;
    font-weight: 500;
    line-height: 28px;
}

.oldalbejegyzes-content ul,
.oldalbejegyzes-content ol {
    margin: 15px 0;
    padding-left: 30px;
}

.oldalbejegyzes-content li {
    margin-bottom: 8px;
}

.oldalbejegyzes-content blockquote {
    margin: 20px 0;
    padding: 15px 20px;
    border-left: 4px solid #333;
    background: #f9f9f9;
    font-style: italic;
}

.oldalbejegyzes-content a {
    color: #0066cc;
    text-decoration: underline;
    transition: color 0.3s ease;
}

.oldalbejegyzes-content a:hover {
    color: #004499;
}

/* Több tartalom (4. bekezdéstől) */
.oldalbejegyzes-content-more {
    animation: oldalbejegyzes-slideDown 0.5s ease;
}

@keyframes oldalbejegyzes-slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 10000px;
    }
}

/* Tovább gomb */
.oldalbejegyzes-toggle {
display: flex;
    width: 230px;
    padding: 10px 15px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    border: 2px solid #736A65;
    color: #736A65;
    background-color: transparent;
    text-transform: uppercase;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-decoration: none;
    transition: all 0.3s ease;
}



/* HOVER állapot (3. gomb) */
.oldalbejegyzes-toggle:hover {
background: #47342D;
  color: #FFFFFF;
  border-color: #4E3C33;
}

.oldalbejegyzes-toggle:hover {
    background: #47342D;
}

.oldalbejegyzes-toggle.oldalbejegyzes-expanded {
    background: #47342D;
}

.oldalbejegyzes-toggle.oldalbejegyzes-expanded:hover {
    background: #47342D;
}

.oldalbejegyzes-item {
    border-bottom: 1px solid #4D6472;
    padding-bottom: 50px;
    margin-bottom: 50px;
}

/* WordPress képek stílusai */
.oldalbejegyzes-content .alignleft {
    float: left;
    margin: 10px 20px 10px 0;
}

.oldalbejegyzes-content .alignright {
    float: right;
    margin: 10px 0 10px 20px;
}

.oldalbejegyzes-content .aligncenter {
    display: block;
    margin: 20px auto;
}

.oldalbejegyzes-content .wp-caption {
    max-width: 100%;
}

.oldalbejegyzes-content .wp-caption-text {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 8px;
}

/* Lapozás konténer */
.oldalbejegyzes-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 60px 0 40px;
    flex-wrap: wrap;
}

.oldalbejegyzes-pagination-prev, .oldalbejegyzes-pagination-next {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 12px 24px;
    background: #47342d00;
    color: #4D6472;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: background 0.3s ease;
}

.oldalbejegyzes-pagination-prev:hover,
.oldalbejegyzes-pagination-next:hover {
    background: #2d1f1900;
}

.oldalbejegyzes-pagination-disabled {
    background: #cccccc00;
    color: #736A65;
    cursor: not-allowed;
    pointer-events: none;
}

.oldalbejegyzes-pagination-arrow {
    font-size: 18px;
}

/* Oldalszámok konténer */
.oldalbejegyzes-pagination-numbers {
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Oldalszám gombok */
.oldalbejegyzes-pagination-number {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 17px;
    width: 26px;
    padding: 8px 19px;
    background: #f5f5f500;
    color: #4D6472;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
}

.oldalbejegyzes-pagination-number:hover {
    background: #47342D;
    color: #fff;
}

/* Aktuális oldal */
.oldalbejegyzes-pagination-current {
    background: #4D6472;
    color: #fff;
    cursor: default;
    border-radius: 8px;
}

/* Pontok (...) */
.oldalbejegyzes-pagination-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 45px;
    height: 45px;
    color: #666;
    font-weight: 600;
    font-size: 16px;
}

a.oldalbejegyzes-pagination-next svg {
rotate: 180deg;
}

.oldalbejegyzes-pagination-disabled svg {

    fill: #736A65;
}


/* Gutenberg galéria blokkok stílusai - minden variáció */
.oldalbejegyzes-content .wp-block-gallery,
.oldalbejegyzes-content .blocks-gallery-grid,
.oldalbejegyzes-content ul.wp-block-gallery,
.oldalbejegyzes-content figure.wp-block-gallery,
.oldalbejegyzes-content .wp-block-gallery.has-nested-images,
.oldalbejegyzes-content-more .wp-block-gallery,
.oldalbejegyzes-content-more .blocks-gallery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 0.5em !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 1.5em 0 !important;
    flex-wrap: unset !important;
    flex-direction: unset !important;
}

/* WordPress flex layout felülírása */
.oldalbejegyzes-content .wp-block-gallery.is-flex-container,
.oldalbejegyzes-content .wp-block-gallery.is-cropped {
    display: grid !important;
}

.oldalbejegyzes-content .wp-block-gallery.columns-1,
.oldalbejegyzes-content .wp-block-gallery.has-nested-images.columns-1 {
    grid-template-columns: repeat(1, 1fr) !important;
}

.oldalbejegyzes-content .wp-block-gallery.columns-2,
.oldalbejegyzes-content .blocks-gallery-grid.columns-2,
.oldalbejegyzes-content .wp-block-gallery.has-nested-images.columns-2,
.oldalbejegyzes-content figure.wp-block-gallery.columns-2 {
    grid-template-columns: repeat(2, 1fr) !important;
}

.oldalbejegyzes-content .wp-block-gallery.columns-3,
.oldalbejegyzes-content .blocks-gallery-grid.columns-3,
.oldalbejegyzes-content .wp-block-gallery.has-nested-images.columns-3,
.oldalbejegyzes-content figure.wp-block-gallery.columns-3 {
    grid-template-columns: repeat(3, 1fr) !important;
}

.oldalbejegyzes-content .wp-block-gallery.columns-4,
.oldalbejegyzes-content .blocks-gallery-grid.columns-4,
.oldalbejegyzes-content .wp-block-gallery.has-nested-images.columns-4,
.oldalbejegyzes-content figure.wp-block-gallery.columns-4 {
    grid-template-columns: repeat(4, 1fr) !important;
}

.oldalbejegyzes-content .wp-block-gallery.columns-5,
.oldalbejegyzes-content .wp-block-gallery.has-nested-images.columns-5 {
    grid-template-columns: repeat(5, 1fr) !important;
}

.oldalbejegyzes-content .wp-block-gallery .blocks-gallery-item,
.oldalbejegyzes-content .blocks-gallery-grid .blocks-gallery-item,
.oldalbejegyzes-content .wp-block-gallery .wp-block-image,
.oldalbejegyzes-content .wp-block-gallery li {
    position: relative !important;
    overflow: hidden !important;
    margin: 0 !important;
    list-style: none !important;
    aspect-ratio: 1 / 1;
    border-radius: 8px;
}

.oldalbejegyzes-content .wp-block-gallery .blocks-gallery-item figure,
.oldalbejegyzes-content .blocks-gallery-grid .blocks-gallery-item figure,
.oldalbejegyzes-content .wp-block-gallery figure,
.oldalbejegyzes-content .wp-block-gallery li figure {
    margin: 0 !important;
    height: 100%;
    width: 100%;
    display: flex !important;
    border-radius: 0px !important;
    overflow: hidden;
}

.oldalbejegyzes-content .wp-block-gallery .blocks-gallery-item img,
.oldalbejegyzes-content .blocks-gallery-grid .blocks-gallery-item img,
.oldalbejegyzes-content .wp-block-gallery img,
.oldalbejegyzes-content .wp-block-gallery li img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    cursor: auto;
    transition: transform 0.3s ease;
    border-radius: 0px;
}

.oldalbejegyzes-content .wp-block-gallery .blocks-gallery-item:hover img,
.oldalbejegyzes-content .blocks-gallery-grid .blocks-gallery-item:hover img,
.oldalbejegyzes-content .wp-block-gallery li:hover img {
    transform: scale(1.05);
}

/* Egyedi képek */
.oldalbejegyzes-content .wp-block-image {
    margin: 1.5em 0;
}

.oldalbejegyzes-content .wp-block-image img {
    max-width: 100%;
    height: auto;
    display: block;
}

.oldalbejegyzes-content .wp-block-image.aligncenter {
    text-align: center;
}

.oldalbejegyzes-content .wp-block-image.alignleft {
    float: left;
    margin-right: 1em;
}

.oldalbejegyzes-content .wp-block-image.alignright {
    float: right;
    margin-left: 1em;
}

/* ACF Galéria gomb és popup */
.oldalbejegyzes-galeria-btn-container {
    margin: 20px 0;
}

.oldalbejegyzes-galeria-btn {
    display: flex;
    width: 280px;
    padding: 10px 15px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    border: 2px solid #736A65;
    color: #736A65;
    background-color: transparent;
    text-transform: uppercase;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.oldalbejegyzes-galeria-btn:hover {
    background: #47342D;
    color: #FFFFFF;
    border-color: #47342D;
}

/* Galéria popup */
.oldalbejegyzes-galeria-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
}

.oldalbejegyzes-galeria-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
}

.oldalbejegyzes-galeria-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    height: 90%;
    margin: 5% auto;
    background: #fff;
    border-radius: 10px;
    padding: 0px;
    overflow-y: auto;
    z-index: 100000;
}

.oldalbejegyzes-galeria-close {
    position: absolute;
    top: 20px;
    display: flex;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #47342D;
    border: 1px solid #ffffff;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 300;
    justify-content: center;
    align-items: center;
}

.oldalbejegyzes-galeria-close:hover {
    color: #000;
}

.oldalbejegyzes-galeria-images {
    display: flex;
    flex-direction: column;
    gap: 0px;
    padding: 0px ;
}

.oldalbejegyzes-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 0px !important;
    display: block;
}

.oldalbejegyzes-galeria-image-item {
    width: 100%;
}

.oldalbejegyzes-galeria-image-item img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Responsive grid */
@media (max-width: 768px) {
    .oldalbejegyzes-content .wp-block-gallery.columns-3,
    .oldalbejegyzes-content .wp-block-gallery.columns-4,
    .oldalbejegyzes-content .blocks-gallery-grid.columns-3,
    .oldalbejegyzes-content .blocks-gallery-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .oldalbejegyzes-galeria-content {
        width: 95%;
        height: 95%;
        margin: 2.5% auto;
        padding: 50px 15px 15px;
    }
}

@media (max-width: 480px) {
    .oldalbejegyzes-content .wp-block-gallery,
    .oldalbejegyzes-content .blocks-gallery-grid {
        grid-template-columns: 1fr !important;
    }
}


/* Reszponzív dizájn */
@media (max-width: 768px) {
    .oldalbejegyzes-container {
        gap: 0px;
    }

    .oldalbejegyzes-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin: 0px;
    flex-wrap: nowrap;
}
    
    .oldalbejegyzes-item {
           padding-bottom: 30px;
              margin-bottom: 30px;
    }
    
    .oldalbejegyzes-title {
        font-size: 26px;
    }
    
    .oldalbejegyzes-content {
        font-size: 15px;
    }
    
    .oldalbejegyzes-content .alignleft,
    .oldalbejegyzes-content .alignright {
        float: none;
        margin: 15px 0;
        display: block;
    }
}





