{"id":54,"date":"2025-10-19T16:27:34","date_gmt":"2025-10-19T16:27:34","guid":{"rendered":"https:\/\/www.diendji1.bg\/?page_id=54"},"modified":"2025-11-04T14:43:27","modified_gmt":"2025-11-04T14:43:27","slug":"gallery","status":"publish","type":"page","link":"https:\/\/www.diendji1.bg\/index.php\/gallery\/","title":{"rendered":"Gallery"},"content":{"rendered":"\n<style>\n:root {\n  --accent-gold: #ffcc33;\n  --dark-blue: #001489;\n}\n\n\/* \u041e\u0441\u043d\u043e\u0432\u043d\u0430 \u0441\u0435\u043a\u0446\u0438\u044f *\/\n.gallery-section {\n  padding: 60px 8%;\n  text-align: center;\n}\n\n.gallery-section h1 {\n  font-size: 42px;\n  color: var(--dark-blue);\n  margin-bottom: 40px;\n}\n\n\/* \u041a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440 \u0437\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u0438\u0442\u0435 *\/\n.category-grid {\n  display: flex;\n  flex-wrap: wrap;\n  justify-content: center;\n  gap: 40px;\n}\n\n\/* \u0415\u0434\u043d\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f *\/\n.category {\n  position: relative;\n  width: 300px;\n  height: 200px;\n  perspective: 1200px;\n  cursor: pointer;\n  transition: transform 0.4s ease;\n}\n\n.category:hover {\n  transform: translateY(-5px);\n}\n\n\/* \u041e\u0441\u043d\u043e\u0432\u043d\u0430 \u0441\u043d\u0438\u043c\u043a\u0430 *\/\n.category img.main {\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n  border: 3px solid var(--accent-gold);\n  border-radius: 10px;\n  transition: all 0.4s ease;\n  box-shadow: 0 5px 15px rgba(0,0,0,0.2);\n}\n\n\/* \u0421\u043a\u0440\u0438\u0442\u0438\u0442\u0435 \u0441\u043d\u0438\u043c\u043a\u0438 *\/\n.category img.extra {\n  position: absolute;\n  width: 100%;\n  height: 100%;\n  object-fit: cover;\n  border: 3px solid var(--accent-gold);\n  border-radius: 10px;\n  top: 0;\n  left: 0;\n  opacity: 0;\n  transform: rotateY(90deg);\n  transition: all 0.5s ease;\n}\n\n\/* \u0415\u0444\u0435\u043a\u0442 \"\u0432\u0435\u0442\u0440\u0438\u043b\u043e\" *\/\n.category:hover img.extra:nth-child(2) {\n  transform: translate(20px, -20px) rotateY(0);\n  opacity: 1;\n}\n.category:hover img.extra:nth-child(3) {\n  transform: translate(40px, -40px) rotateY(0);\n  opacity: 1;\n}\n.category:hover img.extra:nth-child(4) {\n  transform: translate(60px, -60px) rotateY(0);\n  opacity: 1;\n}\n\n\/* \u0417\u0430\u0433\u043b\u0430\u0432\u0438\u0435 *\/\n.category-title {\n  position: absolute;\n  bottom: 10px;\n  left: 0;\n  right: 0;\n  text-align: center;\n  color: #000;\n  background: rgba(255,255,255,0.85);\n  padding: 6px 0;\n  font-weight: 600;\n  border-top: 2px solid var(--accent-gold);\n  border-radius: 0 0 10px 10px;\n}\n\n\/* Lightbox *\/\n#lightbox {\n  display: none;\n  position: fixed;\n  z-index: 9999;\n  top: 0;\n  left: 0;\n  width: 100%;\n  height: 100%;\n  background: rgba(0,0,0,0.9);\n  justify-content: center;\n  align-items: center;\n}\n\n#lightbox img {\n  max-width: 90%;\n  max-height: 80%;\n  border: 3px solid var(--accent-gold);\n  border-radius: 10px;\n}\n\n\/* \u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u043e\u043d\u043d\u0438 \u0441\u0442\u0440\u0435\u043b\u043a\u0438 *\/\n#lightbox .nav {\n  position: absolute;\n  top: 50%;\n  transform: translateY(-50%);\n  color: var(--accent-gold);\n  font-size: 48px;\n  font-weight: bold;\n  cursor: pointer;\n  user-select: none;\n  transition: color 0.3s ease;\n  padding: 10px 20px;\n}\n#lightbox .nav:hover {\n  color: #fff;\n}\n#lightbox .prev { left: 30px; }\n#lightbox .next { right: 30px; }\n<\/style>\n\n<section class=\"gallery-section\">\n  <h1>\u041d\u0430\u0448\u0430\u0442\u0430 \u0413\u0430\u043b\u0435\u0440\u0438\u044f<\/h1>\n  <div class=\"category-grid\">\n\n    <!-- \u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f: \u0410\u043f\u0430\u0440\u0442\u0430\u043c\u0435\u043d\u0442\u0438 -->\n    <div class=\"category\" data-category=\"apartments\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-28.png\" class=\"main\" alt=\"\u0410\u043f\u0430\u0440\u0442\u0430\u043c\u0435\u043d\u0442\u0438\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-27.png\" class=\"extra\" alt=\"\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-23-1.png\" class=\"extra\" alt=\"\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-6-1.png\" class=\"extra\" alt=\"\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-7.png\" class=\"extra\" alt=\"\">\n      <div class=\"category-title\">\u0410\u043f\u0430\u0440\u0442\u0430\u043c\u0435\u043d\u0442\u0438<\/div>\n    <\/div>\n\n    <!-- \u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f: \u041a\u044a\u0449\u0438 -->\n    <div class=\"category\" data-category=\"houses\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-16.png\" class=\"main\" alt=\"\u041a\u044a\u0449\u0438\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-29.png\" class=\"extra\" alt=\"\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-30.png\" class=\"extra\" alt=\"\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-26.png\" class=\"extra\" alt=\"\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-20.png\" class=\"extra\" alt=\"\">\n      <div class=\"category-title\">\u041a\u044a\u0449\u0438<\/div>\n    <\/div>\n\n    <!-- \u041a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f: \u0411\u0438\u0437\u043d\u0435\u0441 \u043e\u0431\u0435\u043a\u0442\u0438 -->\n    <div class=\"category\" data-category=\"business\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-24.png\" class=\"main\" alt=\"\u0411\u0438\u0437\u043d\u0435\u0441 \u043e\u0431\u0435\u043a\u0442\u0438\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-15.png\" class=\"extra\" alt=\"\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-2.png\" class=\"extra\" alt=\"\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-19.png\" class=\"extra\" alt=\"\">\n      <img decoding=\"async\" src=\"http:\/\/www.diendji1.bg\/wp-content\/uploads\/2025\/11\/\u041d\u0435\u043e\u0437\u0430\u0433\u043b\u0430\u0432\u0435\u043d-\u0434\u0438\u0437\u0430\u0439\u043d-1-1.png\" class=\"extra\" alt=\"\">\n      <div class=\"category-title\">\u0411\u0438\u0437\u043d\u0435\u0441 \u043e\u0431\u0435\u043a\u0442\u0438<\/div>\n    <\/div>\n\n  <\/div>\n<\/section>\n\n<!-- Lightbox -->\n<div id=\"lightbox\">\n  <span class=\"nav prev\">&#10094;<\/span>\n  <img decoding=\"async\" src=\"\" alt=\"\">\n  <span class=\"nav next\">&#10095;<\/span>\n<\/div>\n\n<script>\nconst lightbox = document.getElementById('lightbox');\nconst lightboxImg = lightbox.querySelector('img');\nconst prevBtn = lightbox.querySelector('.prev');\nconst nextBtn = lightbox.querySelector('.next');\nlet currentCategoryImages = [];\nlet currentIndex = 0;\n\n\/\/ \u041e\u0442\u0432\u0430\u0440\u044f\u043d\u0435 \u043d\u0430 \u0441\u043d\u0438\u043c\u043a\u0430 \u043e\u0442 \u0434\u0430\u0434\u0435\u043d\u0430 \u043a\u0430\u0442\u0435\u0433\u043e\u0440\u0438\u044f\ndocument.querySelectorAll('.category').forEach(category => {\n  const categoryName = category.dataset.category;\n  const imgs = Array.from(category.querySelectorAll('img'));\n  \n  imgs.forEach((img, index) => {\n    img.addEventListener('click', (e) => {\n      e.stopPropagation();\n      currentCategoryImages = imgs.map(i => i.src);\n      currentIndex = index;\n      showImage();\n      lightbox.style.display = 'flex';\n    });\n  });\n});\n\nfunction showImage() {\n  lightboxImg.src = currentCategoryImages[currentIndex];\n}\n\n\/\/ \u041d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f \u0441\u044a\u0441 \u0441\u0442\u0440\u0435\u043b\u043a\u0438\nnextBtn.addEventListener('click', (e) => {\n  e.stopPropagation();\n  currentIndex = (currentIndex + 1) % currentCategoryImages.length;\n  showImage();\n});\nprevBtn.addEventListener('click', (e) => {\n  e.stopPropagation();\n  currentIndex = (currentIndex - 1 + currentCategoryImages.length) % currentCategoryImages.length;\n  showImage();\n});\n\n\/\/ \u041a\u043b\u0430\u0432\u0438\u0430\u0442\u0443\u0440\u043d\u0430 \u043d\u0430\u0432\u0438\u0433\u0430\u0446\u0438\u044f\ndocument.addEventListener('keydown', (e) => {\n  if (lightbox.style.display === 'flex') {\n    if (e.key === 'ArrowRight') {\n      currentIndex = (currentIndex + 1) % currentCategoryImages.length;\n      showImage();\n    } else if (e.key === 'ArrowLeft') {\n      currentIndex = (currentIndex - 1 + currentCategoryImages.length) % currentCategoryImages.length;\n      showImage();\n    } else if (e.key === 'Escape') {\n      lightbox.style.display = 'none';\n    }\n  }\n});\n\n\/\/ \u0417\u0430\u0442\u0432\u0430\u0440\u044f\u043d\u0435 \u043f\u0440\u0438 \u043a\u043b\u0438\u043a \u0438\u0437\u0432\u044a\u043d \u0441\u043d\u0438\u043c\u043a\u0430\u0442\u0430\nlightbox.addEventListener('click', (e) => {\n  if (e.target === lightbox) lightbox.style.display = 'none';\n});\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"<p>\u041d\u0430\u0448\u0430\u0442\u0430 \u0413\u0430\u043b\u0435\u0440\u0438\u044f \u0410\u043f\u0430\u0440\u0442\u0430\u043c\u0435\u043d\u0442\u0438 \u041a\u044a\u0449\u0438 \u0411\u0438\u0437\u043d\u0435\u0441 \u043e\u0431\u0435\u043a\u0442\u0438 &#10094; &#10095;<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-54","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/www.diendji1.bg\/index.php\/wp-json\/wp\/v2\/pages\/54","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.diendji1.bg\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.diendji1.bg\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.diendji1.bg\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.diendji1.bg\/index.php\/wp-json\/wp\/v2\/comments?post=54"}],"version-history":[{"count":16,"href":"https:\/\/www.diendji1.bg\/index.php\/wp-json\/wp\/v2\/pages\/54\/revisions"}],"predecessor-version":[{"id":262,"href":"https:\/\/www.diendji1.bg\/index.php\/wp-json\/wp\/v2\/pages\/54\/revisions\/262"}],"wp:attachment":[{"href":"https:\/\/www.diendji1.bg\/index.php\/wp-json\/wp\/v2\/media?parent=54"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}