/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input {
  /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select {
  /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/Poppins-Regular.ttf) format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  src: url(../fonts/Poppins-Medium.ttf) format("truetype");
}

.page {
  background-color: #fcf5e5;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  min-height: 100vh;
}
.page__section {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
}

.header {
  background-color: #fff;
  padding: 10px 0;
  display: flex;
  justify-content: center;
}
.header__logo {
  background-image: url(../images/Logo.svg);
  margin: 0 auto;
  width: 94px;
  height: 26px;
}

.content {
  padding: 0 20px;
}
@media screen and (max-width: 630px) {
  .content {
    padding: 0 16px;
  }
}

.profile {
  display: flex;
  align-content: center;
  margin: auto;

  gap: 20px;
  padding: 34px 0 20px;
  border-bottom: 1px solid rgba(33, 33, 33, 0.4);
}

.profile__avatar {
  width: 190px;
  height: 190px;
  border-radius: 8px;
  cursor: pointer;
}

.profile__column {
  display: flex;
  flex-direction: column;
}

.profile__name {
  margin: 0 0 12px;
  color: #212121;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 32px;
  line-height: 100%;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-width: 420px;
}

.profile__description {
  margin: 0 0 18px;
  color: #212121b2;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
  display: -webkit-box;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  max-width: 420px;
}

.profile__edit-btn {
  margin: auto auto 0 0;
  width: 108px;
  display: flex;
  border: none;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  background-color: #fcf5e5;
  color: #212121;
  padding: 0;
  gap: 8px;
  opacity: 0.7;
}

.profile__edit-btn:hover {
  opacity: 1;
  cursor: pointer;
}

.profile__add-btn {
  display: flex;
  width: 149px;
  height: 52px;
  margin: auto 0 0 auto;
  background: #212121;
  color: #fcf5e5;
  opacity: 1;
  border-radius: 8px;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 100%;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
}

.profile__add-btn:hover {
  opacity: 0.7;
  cursor: pointer;
}

@media screen and (max-width: 630px) {
  .profile {
    flex-direction: column;
    width: 100%;
    align-items: center;
    text-align: center;
  }

  .profile__edit-btn {
    align-self: center;
    gap: 8px;
    margin: 0 auto 20px;
    opacity: 0.7;
    border-radius: 90px;
    padding: 0;
  }

  .profile__add-btn {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    margin: auto 0 20px auto;
  }

  .profile__name {
    margin: 0 0 6px;
    width: 100%;
    font-size: 20px;
    text-align: center;
    color: rgba(33, 33, 33, 1);
  }
  .profile__description {
    padding: 0 0 32px;
    width: 100%;
    max-width: 630px;
    font-size: 16px;
    text-align: center;
    color: rgba(33, 33, 33, 0.7);
  }
}

.cards {
  padding: 20px 0 40px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(33, 33, 33, 0.4);
}

.cards__list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, 413px);
  justify-content: center;
  margin: 0;
  gap: 40px 20px;
  padding: 0;
}
@media screen and (max-width: 630px) {
  .cards__list {
    grid-template-columns: repeat(auto-fit, 288px);
  }
}

.card {
  position: relative;
}

.card__image {
  height: 413px;
  width: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}

.card__title {
  margin: 12px 0 0;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 500;
  font-size: 20px;
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.2;
  text-overflow: ellipsis;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  flex-wrap: nowrap;
}

.card__delete-btn {
  background-image: url(../images/delete.svg);
  height: 32px;
  width: 32px;
  border: none;
  background-color: transparent;
  position: absolute;
  top: 10px;
  right: 10px;
  background-repeat: no-repeat;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.card__like-btn {
  background-image: url(../images/likeIcon.svg);
  background-repeat: no-repeat;
  background-color: transparent;
  margin: 12px 0 0;
  padding: 0;
  width: 23px;
  height: 20px;
  border: none;
  opacity: 0.4;
  cursor: pointer;
}
.card__like-btn_active {
  background-image: url(../images/likeNoHover.svg);
  opacity: 1;
}
.card__like-btn:hover {
  opacity: 1;
}
.card__like-btn_active:hover {
  opacity: 0.4;
}

.card__delete-btn {
  background-image: url(../images/delete.svg);
  height: 32px;
  width: 32px;
  border: none;
  background-color: transparent;
  position: absolute;
  top: 10px;
  right: 10px;
  background-repeat: no-repeat;
  padding: 0;
  margin: 0;
  cursor: pointer;
}
.card__delete-btn:hover {
  background-image: url(../images/deleteHover.svg);
}

@media screen and (max-width: 630px) {
  .card__image {
    height: 288px;
    width: 100%;
  }
  .card__title {
    max-width: 235px;
  }
}

.footer__copyright {
  display: flex;
  justify-content: center;
  padding: 60px 0;
  margin: 0;
  background-color: #fcf5e5;
  font-family: "Poppins", Arial, Helvetica, sans-serif;
  font-weight: 400;
  font-size: 16px;
  color: rgba(33, 33, 33, 0.7);
}

.modal {
  visibility: hidden;
  background-color: #00000080;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  transition:
    visibility 0.3s linear,
    opacity 0.3s ease-in;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
}
.modal_is-opened {
  visibility: visible;
  opacity: 1;
}
.modal__container {
  max-width: 730px;
  background-color: #fff;
  position: relative;
  box-sizing: border-box;
  width: 100%;
  border-radius: 8px;
  padding: 32px 50px;
}

/* ================= CLOSE ================= */
.modal__close-btn {
  border: none;
  padding: 0;
  width: 40px;
  height: 40px;
  background-color: transparent;
  align-self: center;
  position: absolute;
  top: 32px;
  right: 50px;
}
.modal__close-btn:hover {
  opacity: 0.4;
}

/* ================= FORM ================= */
.modal__form {
  display: flex;
  flex-direction: column;
}

.modal__title {
  margin: 0 0 32px;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  font-size: 32px;
  color: #212121;
}

.modal__label {
  margin: 0 0 32px;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  color: #212121b2;
}

.modal__input {
  display: block;
  box-sizing: border-box;
  margin: 8px 0 8px;
  border: 1px solid #21212166;

  padding: 16px 12px;
  border-radius: 8px;
  border-width: 1px;
  max-width: none;
  width: 100%;
}

.modal__input::placeholder {
  color: #aaa;
}

/* ================= VALIDATION ================= */
.modal__input_type_error {
  border: 1px solid #ff000099;
}

.modal__error {
  color: #ff0000b2;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  gap: 8px;
}
.modal__input::placeholder {
  color: #2121214d;
}

.modal__error_visible {
  opacity: 1;
}

/* ================= BUTTONS ================= */
.modal__save-btn {
  max-width: 156px;
  height: 52px;
  padding: 18px 32px;
  background-color: #212121;
  color: #fcf5e5;
  border-radius: 8px;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

.modal__save-btn_disabled {
  background: #212121;
  opacity: 0.5;
  pointer-events: none;
}
.modal__save-btn_disabled:hover {
  background: #212121;
  cursor: pointer;
  opacity: 0.4;
}

/*  LOADING STATE */
.modal__save-btn_loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ================= DELETE MODAL ================= */
.modal__form_type_delete {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
}

.modal__confirm-btn {
  width: 156px;
  height: 52px;
  background: #ff6565;
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.modal__cancel-btn {
  width: 156px;
  height: 52px;
  background: #212121;
  color: #fcf5e5;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

/* ================= PREVIEW ================= */
.modal__image-container {
  position: relative;
  flex-direction: column;
  border-radius: 8px;
  margin: 0;
  object-fit: contain;
  padding: 16px;
}
.modal__close-btn_type_preview {
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0;
  right: -82.5px;
  opacity: 1;
  cursor: pointer;
  border: none;
}

.modal__close-btn_type_preview:hover {
  opacity: 0.4;
}

.modal__image {
  position: relative;
  max-width: 80vw;
  max-height: 80vh;
  width: 100%;
  object-fit: contain;
  display: block;
  background-color: #00000080;
  border-radius: 8px;
}

.modal__caption {
  color: white;
  background-color: #212121;
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 500;
  font-size: 20px;
  line-height: 120%;
  padding: 4px 8px;
  margin: 8px 0;
  border-radius: 8px;
  flex-shrink: 1;
  width: fit-content;
}
@media screen and (max-width: 480px) {
  .modal__container {
    margin: 10px;
    padding: 10px;
  }
  .modal__save-btn {
    margin: 24px 0 0;
    max-width: none;
    width: 100%;
  }
  .modal__title {
    font-size: 20px;
    margin: 12px 0;
    border-radius: 8px;
  }
  .modal__image-container {
    margin: 0;
    object-fit: contain;
  }
  .modal__caption {
    margin: 8px 0 0;
    border-radius: 8px;
  }

  .modal__close-image {
    top: 12px;
    right: 12px;
  }
  .modal__image {
    max-width: unset;
    min-width: 288px;
    margin: 0;
  }

  .modal__caption {
    font-family: "Poppins", Arial, sans-serif;
    font-weight: 500;
    font-size: 16px;
    line-height: 120%;
  }
  .modal__close-btn_type_preview {
    top: -48px;
    right: 0;
  }
}
@media screen and (max-width: 630px) {
  .modal__close-btn_type_preview {
    top: -48px;
    right: 0;
  }
  .modal__image {
    max-width: unset;
  }
}




/*# sourceMappingURL=main.52f4b956b71faabc10ce.css.map*/