/* ======================================== AUTHOR LOOP - GRID LAYOUT Place this file in: /wp-content/themes/enfold-child/includes/loop-author.css ======================================== */ /* Author Grid Container - CSS Grid Layout */ #top.author .av-author-grid-container { display: grid !important; gap: 20px; margin: 40px 0; grid-template-columns: repeat(4, 1fr); /* Default: 4 Spalten */ } /* Dynamisch per Filter - Spalten-Einstellungen */ #top.author .av-author-grid-container.av-columns-2 { grid-template-columns: repeat(2, 1fr); } #top.author .av-author-grid-container.av-columns-3 { grid-template-columns: repeat(3, 1fr); } #top.author .av-author-grid-container.av-columns-5 { grid-template-columns: repeat(5, 1fr); } #top.author .av-author-grid-container.av-columns-6 { grid-template-columns: repeat(6, 1fr); } /* Grid Items - Flexbox for equal height */ #top.author .av-author-grid-container .flex_column { margin: 0 !important; padding: 0 !important; width: auto !important; max-width: none !important; display: flex !important; flex-direction: column !important; } /* Grid Item Container - Flexbox for button alignment */ #top.author .av-author-grid-item { display: flex; flex-direction: column; background: #fff; border: 1px solid #e1e1e1; overflow: hidden; transition: all 0.3s ease; height: 100%; flex: 1; } #top.author .av-author-grid-item:hover { box-shadow: 0 10px 30px rgba(0,0,0,0.1); transform: translateY(-5px); border-color: #ccc; } /* Image Link */ #top.author .av-author-grid-image-link { display: block; text-decoration: none; } /* Image Container */ #top.author .av-author-grid-image { position: relative; overflow: hidden; background: #f5f5f5; } /* Placeholder Image */ #top.author .av-author-placeholder-image { width: 100%; padding-top: 75%; /* 4:3 Aspect Ratio */ background: #e8e8e8; display: flex; align-items: center; justify-content: center; position: relative; } #top.author .av-author-placeholder-image svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); color: #999; opacity: 0.75; width: 64px; height: 64px; } #top.author .av-author-grid-image img { display: block; width: 100%; height: auto; transition: transform 0.3s ease; } #top.author .av-author-grid-image-link:hover .av-author-grid-image img, #top.author .av-author-grid-item:hover .av-author-grid-image img { transform: scale(1.05); } #top.author .av-author-grid-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0); transition: background 0.3s ease; pointer-events: none; } #top.author .av-author-grid-image-link:hover .av-author-grid-overlay, #top.author .av-author-grid-item:hover .av-author-grid-overlay { background: rgba(0,0,0,0.1); } /* Content - takes up the available space */ #top.author .av-author-grid-content { padding: 25px; flex: 1 1 auto; display: flex; flex-direction: column; } #top.author .av-author-grid-title { font-size: 18px; font-weight: 600; margin: 0 0 10px 0; line-height: 1.4; } #top.author .av-author-grid-title a { color: #333; text-decoration: none; transition: color 0.3s ease; } #top.author .av-author-grid-title a:hover { color: #000; } #top.author .av-author-grid-meta { display: block; font-size: 13px; color: #999; margin-bottom: 15px; } #top.author .av-author-grid-meta .text-sep { margin: 0 5px; } #top.author .av-author-grid-excerpt { font-size: 14px; line-height: 1.6; color: #666; margin: 0; } #top.author .av-author-grid-excerpt p { margin: 0 0 10px 0; } #top.author .av-author-grid-excerpt p:last-child { margin-bottom: 0; } /* Read More Button - always at the bottom */ #top.author .av-author-grid-read-more { padding: 20px 25px; margin-top: auto; /* Moves down automatically */ border-top: 1px solid #f0f0f0; } #top.author .av-author-grid-read-more .more-link { display: inline-block; font-weight: 600; color: #000; text-decoration: none; transition: color 0.3s ease; } #top.author .av-author-grid-read-more .more-link:hover { color: #666; } #top.author .av-author-grid-read-more .more-link-arrow { display: inline-block; margin-left: 5px; transition: transform 0.3s ease; } #top.author .av-author-grid-read-more .more-link:hover .more-link-arrow { transform: translateX(5px); } /* ======================================== AUTHOR LOOP - LIST LAYOUT ======================================== */ /* List Container */ #top.author .av-author-list-container { display: flex; flex-direction: column; gap: 30px; margin: 40px 0; } /* List Item */ #top.author .av-author-list-item { display: flex; gap: 30px; background: #fff; border: 1px solid #e1e1e1; overflow: hidden; transition: all 0.3s ease; padding: 0; } #top.author .av-author-list-item:hover { box-shadow: 0 5px 20px rgba(0,0,0,0.08); border-color: #ccc; } /* List Image */ #top.author .av-author-list-image { flex: 0 0 280px; overflow: hidden; background: var(--enfold-main-color-bg); } #top.author .av-author-list-image a { display: block; height: 100%; } /* List Placeholder Image */ #top.author .av-author-list-image .av-author-placeholder-image { height: 100%; min-height: 200px; padding: 0; background: #e8e8e8; display: flex; align-items: center; justify-content: center; } #top.author .av-author-list-image .av-author-placeholder-image svg { position: static; transform: none; color: #999; opacity: 0.5; } #top.author .av-author-list-image img { display: block; width: 100%; transition: transform 0.3s ease; } #top.author .av-author-list-item:hover .av-author-list-image img { transform: scale(1.05); } /* List Content */ #top.author .av-author-list-content { flex: 1; padding: 30px; display: flex; flex-direction: column; } #top.author .av-author-list-title { font-size: 22px; font-weight: 600; margin: 0 0 10px 0; line-height: 1.4; } #top.author .av-author-list-title a { color: #333; text-decoration: none; transition: color 0.3s ease; } #top.author .av-author-list-title a:hover { color: #000; } #top.author .av-author-list-meta { display: flex; font-size: 0.9em; color: #999; margin-bottom: 15px; flex-flow: row wrap } #top .av-author-list-meta .blog-categories { text-align: left; font-weight: 400; font-size: 0.9em; top: 0 !important; } #top.author .av-author-list-meta .text-sep { margin: 0 5px; } #top.author .av-author-list-excerpt { font-size: 15px; line-height: 1.7; color: #666; margin: 0 0 20px 0; flex: 1; } #top.author .av-author-list-excerpt p { margin: 0 0 15px 0; } #top.author .av-author-list-excerpt p:last-child { margin-bottom: 0; } #top.author .av-author-list-read-more { margin-top: auto; } #top.author .av-author-list-read-more .more-link { display: inline-block; font-weight: 600; color: #000; text-decoration: none; transition: color 0.3s ease; } #top.author .av-author-list-read-more .more-link:hover { color: #666; } #top.author .av-author-list-read-more .more-link-arrow { display: inline-block; margin-left: 5px; transition: transform 0.3s ease; } #top.author .av-author-list-read-more .more-link:hover .more-link-arrow { transform: translateX(5px); } /* ======================================== PAGINATION ======================================== */ #top.author .av-author-pagination { clear: both; text-align: center; margin: 40px 0 20px; width: 100%; grid-column: 1 / -1; } #top.author .av-author-pagination .pagination { display: inline-block; } #top.author .av-author-pagination .pagination .current, #top.author .av-author-pagination .pagination a { display: inline-block; padding: 8px 15px; margin: 0 3px; background: #f5f5f5; border: 1px solid #e1e1e1; text-decoration: none; color: #333; transition: all 0.3s ease; } #top.author .av-author-pagination .pagination .current { background: #000; color: #fff; border-color: #000; } #top.author .av-author-pagination .pagination a:hover { background: #333; color: #fff; border-color: #333; } /* ======================================== RESPONSIVE ======================================== */ /* Grid Responsive */ @media only screen and (max-width: 1340px) { /* 5-6 columns -> 3 columns */ #top.author .av-author-grid-container.av-columns-5, #top.author .av-author-grid-container.av-columns-6 { grid-template-columns: repeat(3, 1fr) !important; } } @media only screen and (max-width: 989px) { /* Alle auf 2 Spalten */ #top.author .av-author-grid-container { grid-template-columns: repeat(2, 1fr) !important; } /* List: Kleineres Bild */ #top.author .av-author-list-image { flex: 0 0 200px; } #top.author .av-author-list-content { padding: 20px; } } @media only screen and (max-width: 767px) { /* Grid on 1 Column */ #top.author .av-author-grid-container { gap: 15px; grid-template-columns: 1fr !important; } #top.author .av-author-grid-content { padding: 20px; } /* List: Vertical */ #top.author .av-author-list-container { gap: 20px; } #top.author .av-author-list-item { flex-direction: column; gap: 0; } #top.author .av-author-list-image { flex: 0 0 auto; max-height: 250px; } #top.author .av-author-list-title { font-size: 20px; } }